CALGARY, Alberta — Rookie goalie Christopher Gibson made 50 saves as the New York Islanders beat the Calgary Flames 5-2 on Sunday to snap an eight-game losing streak.

Anders Lee scored twice, while Johnny Boychuk had a goal and two assists for New York, which had been 0-4-4 since winning at Carolina on Feb. 16. Nick Leddy and Jordan Eberle also scored for the Islanders, and Casey Cizikas and John Tavares had two assists each.

Gibson improved his record this season to 1-0-2 and got his second NHL win. He was 1-1-1 for the Islanders in the 2015-16 season.

Johnny Gaudreau had a goal and an assist for the Flames, who kicked off a three-game homestand after going 2-0-1 on the road last week. Mark Giordano also scored, while goalie Mike Smith made 22 saves in his return after missing 13 games with a lower-body injury.

Smith sustained his injury late in Calgary’s 3-2 win over the Islanders in New York on Feb. 11. The Flames went 5-6-2 with him out of the lineup.

With Smith activated from injured reserve, the Flames also assigned goalie Jon Gillies of South Portland back to AHL Stockton on Sunday. Gillies was 2-3-1 in with a .916 save percentage in his most recent recall.

PENGINS 3, STARS 1: Jamie Oleksiak scored a goal against his former team to help host Pittsburgh beat Dallas.

Oleksiak scored his fifth of the season, while Evgeni Malkin got his 39th and added an assist. Patric Hornqvist scored a power-play goal, his 20th, to help the Penguins win for the fourth in five games.

Malkin, now with 919 points, moved past Pavel Datsyuk for fifth on the NHL’s all-time points list among Russian-born players. He also equaled a season-high six-game points streak.

Pittsburgh, which rebounded from a 5-2 loss at Toronto one night earlier, jumped past Washington for first place in a tight Metropolitan Division. The Penguins have won 14 of their last 15 overall at home.

Casey DeSmith made 17 saves for the Penguins with starter Matt Murray out for the seventh straight game with a concussion.

Alexander Radulov scored a power-play goal, his 25th of the season, for the Stars, who started a critical late-season stretch of six road games in 10 days with a loss against the two-time defending Stanley Cup champions. Dallas, the first wild card in the Western Conference, is 14-15-3 on the road and has just two wins in its last six games.

Kari Lehtonen, making his third straight start, stopped 27 shots.