CALGARY – The team that’s been in a deep freeze for three weeks pulled off a third-period comeback against the one that specializes in them.

Mired in a rut for the last 10 games, the Ducks struck for five goals to finish off a rally from a second-period deficit and beat the Calgary Flames, 6-3, on Friday night at Scotiabank Saddledome.

Francois Beauchemin, Ryan Getzlaf, Kyle Palmieri and Jakob Silfverberg and Hampus Lindholm all scored in the third period as the Ducks (36-16-7) scored six straight times after the Flames (32-23-4) built a 2-0 lead on goals by Matt Stajan and Lance Bouma. John Gibson stopped 25 shots in the victory.

Getzlaf, Lindholm and Andrew Cogliano each had a goal and an assist and Patrick Maroon added two assists. Calgary goalie Jonas Hiller made 32 saves but lost for the second time in three starts this season against his former team.

Stajan opened the scoring when he put in a rebound in the first period after Cam Fowler turned the puck over. Bouma upped the Flames’ lead to two goals as defenseman Dennis Wideman jumped on another Ducks mistake and quickly fed the winger in front for a tap-in past Gibson.

Instead of collapsing under the weight of another deficit, the Ducks fought back on the scoreboard.

Taking advantage of a bad Calgary line change, Corey Perry got some room and let loose a slap shot that Hiller made an initial save on. Cogliano pushed toward the net at the same time and was in position for the rebound to bounce into the net off him.

The Ducks continued their surge into the third, displaying for the first time in weeks the kind of hockey that had propelled them to the Pacific Division lead and, for a time, the top of the Western Conference.

Cogliano used his speed on the outside to create an opportunity for Beauchemin to jump into the low slot and bury a pass from the winger for a 2-2 tie. Getzlaf gave the Ducks the lead when he fired a slap shot wide that ricocheted off the end boards toward Hiller and in off the goalie.

Palmieri and Silfverberg scored 3:10 apart to effectively put it out of reach. Sean Monahan added a late power-play goal for the Flames but Lindholm wrapped up the victory with his empty-net score.

Eric Stephens has been covering the Ducks and the NHL for news outlets since 2005 and for the Orange County Register since 2009. Now happily spreading the hockey gospel throughout the Southern California News Group. Has covered three Stanley Cup Finals and (sadly) one NHL lockout. Once took up an invitation to a fan's tailgate barbecue at the College World Series. Has all sorts of genres on his iPod and tries his best in whatever he does most of the time. Only the grits at Waffle House come close to his. Eternal goal: Be better.