TORONTO -- Jonathan Bernier made 32 saves and James van Riemsdyk scored the winner early in the second period as Toronto defeated Calgary 4-1 Tuesday, sending the Flames to their first back-to-back regulation losses this season.
Peter Holland opened the scoring for Toronto which got empty-net goals from Phil Kessel and Mike Santorelli. The Maple Leafs wrapped up a five-game homestand at 4-1-0 before 19,122 at the Air Canada Centre.
Markus Granlund scored for the Flames, who trailed 2-0 going into the third.
Calgary outshot Toronto 33-29.
The Leafs (15-9-3) are now 6-1-1 since a pair of lopsided losses to Buffalo and Nashville. The Flames (17-10-2) were coming off a 3-2 loss to San Jose that snapped a four-game win streak.
Toronto got a sharp outing from Bernier in his ninth straight start and 11th in 12 games. Bernier, who made 44 saves in Saturday's win over Vancouver, came into the game with a 3-1-0 career mark against Calgary with a 1.75 goals-against average and .944 save percentage.
Jonas Hiller, who had lost all four previous starts against the Leafs, was in the Flames goal after five consecutive starts by Karri Ramo.
A goal-saving stop by Bernier on Johnny Gaudreau in close midway through the first period turned into a goal at the other end when, on the ensuing rush, Joffrey Lupul beat a defender down the boards and sent the puck over to the net. David Clarkson's rebound went to Holland, who stuffed it in at 10:46 for his seventh of the season and second in as many games.
The Flames deserved better after a hard-working, enterprising period in which they outshot the Leafs 13-8. But the tables turned in the second period.
Toronto came into the game as one of only two teams unbeaten when it scores first (11-0-0 before Tuesday). Things looked bright after 20 minutes given the Leafs' league-best second-period goals total (39 prior to puck drop).
The Leafs made it 2-0 on the power play at 2:51 of the second, after a heads-up play by Nazem Kadri. Rather than shooting himself from the face-off dot, the Toronto centre slid a perfect pass over to van Riemsdyk, who redirected the puck past Hiller from in front for his 11th of the season.
Dion Phaneuf got an assist on the play, the ex-Flames' first career point against Calgary in seven games.
Toronto outshot Calgary 6-0 in the first 8 1/2 minutes of the second period and were outshooting the visitors 11-1 some 11 minutes into the period.
The Leafs got sloppy as the second ended, with one sequence having two Toronto players without sticks after Stephane Robidas lost his and fumbled a stick handover from Clarkson.
Toronto ended up outshooting Calgary 13-4 in the period.
Phil Kessel showed great skill early in the third, knocking down a high pass from behind him and then flicking it to linemate Tyler Bozak whose shot was stopped by Hiller. The Swiss goalie then stopped Clarkson on a rush.
A penalty for too many men on the ice then cost the Leafs as Granlund beat his man and tucked a fine pass from Mark Giordano past Bernier to cut the lead to 2-1 at 3:48. It was his fourth goal of the season.
Flames forward Mason Raymond returned to face his former team after an 18-game absence due to a shoulder injury. Matt Stajan, another former Leaf, played in his second game after missing 16 with a knee injury.
NOTES: The Flames sent forward Sven Baertschi to the AHL Adirondack Flames to make room for Raymond ... Tuesday's game marked the start of a four-game road trip that will see the Flames play Thursday in Buffalo, before stops in Pittsburgh and Chicago ... Toronto visits Detroit on Wednesday before hoisting the Wings on Saturday to kick off three more games at home ... Prior to the game, Flames defenceman T.J. Brodie was shown on the big screen as an 11-year-old hitting all four targets at the 2002 Leafs skills competition.