Jiri Hudler, Raphael Diaz and Johnny Gaudreau scored within a span of 6:49 of the second period, and the Calgary Flames held on for a 5-3 victory over the Dallas Stars on Monday night.

After that barrage, Dallas coach Lindy Ruff replaced goalie Kari Lehtonen with Jhonas Enroth. The third-place Flames moved three points ahead of Los Angeles in the Pacific Division.

Calgary led 4-2 after two periods. Jonas Hiller allowed a third-period goal to Dallas defenseman Jason Demers, but made 15 of his 36 saves in the final frame.

Dennis Wideman, Gaudreau and Hudler all had a goal and assist for Calgary, and Mikael Backlund added an empty-net goal with 7 seconds left.

Jason Spezza had a goal and an assist, and Lehtonen allowed four goals on 19 shots for Dallas. Enroth stopped all five shots he faced.

Dallas scored just 40 seconds into the game. Spezza took a pass from Patrick Eaves in the neutral zone, skated across the blue line and fired a shot past Hiller.

Wideman tied it with a shot from the slot at 9:34 of the first during a power play.

Seguin matched Wideman's power-play goal from the left circle at 19:26, allowing the Stars to take a 2-1 lead into the second period. They outshot Calgary 10-5 in the first.

The Stars kept up the pressure early in the second, but couldn't score.

Calgary made it 2-2 when Hudler deflected Kris Russell's shot from the left point off Dallas defenseman Alex Goligoski's arm and past Lehtonen at 9:25 of the second.

Diaz gave the Flames their first lead when he skated around Lehtonen on the right side of the net, went behind it, and put the puck in on a wraparound before the goalie could get over to the left side at 12:27.

Gaudreau scored at 16:14 to knock Lehtonen out of the game.

Dallas came back within one on Demers' slap shot from the top of the slot through a crowd. The Stars had good scoring chances thereafter, but couldn't score again.

NOTES: Diaz's goal was his second in 55 games this season and first since Feb. 2. ... Demers' goal originally was credited to Ryan Garbutt, who hasn't scored in 34 games. ... Calgary played its third game on a five-game trip, and on consecutive nights. The Flames are 7-2-1 in the second game of back-to-backs.