The home side, forced to play with 14 men from the 30th minute onwards following a red card to Diarmuid O’Connor, are headed for the qualifiers once more after a provincial quarter-final where they only led twice.

The teams were level five times throughout a desperately poor second-half, with extra-time looking a distinct possibility until Heaney’s goal. Sub Ian Burke fetched Adrian Varley’s kick-pass, offloaded to Heaney and he hammered the ball high into the roof of David Clarke’s goal four minutes into second-half injury-time.

That score put Galway 1-11 to 0-12 in front and although Cillian O’Connor narrowed the gap thereafter, a Thomas Flynn fisted point sealed Galway’s progress into a Connacht semi-final against Sligo.

The main talking point of the first-half was Diarmuid O’Connor’s sending-off, the half-forward receiving a straight red card for elbowing Paul Conroy in the face on the half hour. It was the second consecutive Galway-Mayo fixture where the Ballintubber man had been dismissed.

By this juncture in proceedings, the entire Galway full-back line had been yellow-carded as Conor Lane wasted little time in filling his black book.

Ciarán Duggan split the posts not long after O’Connor’s sending off to to push the visitors into a 0-7 to 0-5 lead. Comer and Walsh both wasted subsequent opportunities to extend Galway’s lead and the gap was back to the minimum come the interval break as Andy Moran notched his first in stoppages.

Picture: Sportsfile

Mayo, despite playing into the wind in that opening half, opened sprightlier but wasted several opportunities - the home outfit had four wides clocked inside 10 minutes, as well as a Kevin McLoughlin free which came back down off the post.

On top of O’Connor’s departure, Mayo also lost Tom Parsons - the midfielder having to be stretchered off after a nasty looking injury.

Two each from Shane Walsh and Ciarán Duggan had Galway 0-11 to 0-10 ahead approaching the end of regulation time. Thereafter, they kicked four wides and could have been in trouble but for Heaney’s crucial score.