By LARRY LAGE
AP Hockey Writer
DETROIT (AP) -- Dylan Larkin and Brad Richards scored 45 seconds apart midway through the second period to put the Detroit Red Wings ahead and they went on to beat the Calgary Flames 4-2 Sunday night.
Gustav Nyquist scored to give Detroit a two-goal lead late in the second period and Justin Abdelkader scored an empty-net goal with 30 seconds left in the game.
Dougie Hamilton's goal with 3:59 left pulled Calgary within a goal.
Petr Mrazek made 26 saves for the Red Wings, who were winless in their previous three games, and was fortunate to have some shots hit posts behind him.
Karri Ramo stopped 31 saves for the Flames, who have lost two straight after winning seven in a row.
Calgary's Dennis Wideman broke a scoreless tie in the first period.
Wideman's goal ended the team's five-game stretch without a power-play goal. The Flames, who score on an NHL-low 10 percent of their power plays, had scored just two goals with a man advantage in 52 chances over 15-plus games before his goal.
Red Wings captain Henrik Zetterberg was able to play one game after having a lower-body injury, but defenseman Jonathan Ericsson was unable to bounce back from the upper-body injury he had in Friday's shootout loss to Vancouver.
Larkin made it 1-all 7:46 into the second period, scoring off a rebound and ending a five-game stretch without a goal, after the Flames failed to clear the puck.
Less than a minute later, Calgary was casual with the puck in its end and it was costly because Richards was able to shoot the puck through traffic and into the back of the net to put Detroit up 2-1. The Red Wings were able to take a two-goal cushion into the third period.
The Flames pulled Ramo to add an extra skater during a 4-on-4 situation with four-plus minutes left and it paid off with Hamilton's goal.
Detroit, which has struggled to keep late leads this season, did enough to win after going 0-1-2 in the previous three games following an 8-0-4 run.
NOTES: Calgary, which surged over .500 with its recent winning streak, fell to 5-11-2 on the road. ... The Red Wings scratched C Tomas Nosek and D Xavier Ouellet after recalling for the game from the AHL to add depth.