Updated

Ryan Getzlaf scored a fluke tiebreaking goal midway through the third period to key the Anaheim Ducks' five-goal outburst in the final 14 minutes in a 6-3 victory over the Calgary Flames on Friday night.

Getzlaf's slap shot from the blue line went over the net and caromed back off the end boards, deflecting in off the back leg of Flames goalie Jonas Hiller at 8:53 of the third to put Anaheim up 3-2. Francois Beauchemin had tied the score less than 3 minutes earlier.

Andrew Cogliano got the Ducks on the scoreboard in the second period, and Kyle Palmieri, Jakob Silferberg and Hampus Lindholm also scored in the third. John Gibson finished with 25 saves to help the Ducks get their second win in seven games (2-4-1).

Palmeiri got the eventual winner, making it 4-2 at 11:35. Mikael Backlund mishandled the puck in front of his net and when Hiller couldn't smother it, Palmeiri was right there to jam it in.

Matt Stajan, Lance Bouma and Sean Monahan scored for the Flames, and Hiller stopped 32 of the 37 shots he faced. Calgary wrapped up a 2-1-1 homestand and will head on a seven-game Eastern road trip.

The third-period comeback was Anaheim's eighth in 24 games when trailing after two. Calgary leads the league with 10 wins in such circumstances, and lost for the first time in 15 games this season when leading after 40 minutes.

Stajan got his first goal in 17 games with 5:10 to go in the first and Bouma made it 2-0 with his 12th goal of the season with 9 minutes remaining in the second.

The Ducks cut the deficit in half with 4:52 remaining in the period when Corey Perry's shot was stopped but the rebound bounced in off Cogliano as he went to the net.

NOTES: Linesman Mark Wheler worked his 1,500th game. ... Markus Granlund, called up from Adirondack (AHL) on Thursday, played center between Curtis Glencross and Mason Raymond. ... Flames scratches were Paul Byron (lower body) and Josh Jooris. ... Calgary has not allowed a power-play goal in a team-record 11 consecutive games (20 for 20). ... Glencross had an assist for his first point in 11 games.