It was supposed to be a homecoming of sorts for Curtis Joseph, who signed with Detroit in the offseason after four years with the Maple Leafs. But fans booed when Legace was announced as the starting goaltender.
Legace stopped the first 30 shots he faced before Tie Domi capitalized on a turnover and got the Maple Leafs on the board with 9.3 seconds to play.
Ed Belfour, who signed with Toronto as Joseph's replacement, was greeted by chants of "Eddie Belfour" and also made 30 saves.
Maltby opened the scoring 5:16 into the third period when his slap shot from the top of the left faceoff circle deflected off the left skate of Leafs defenseman Tomas Kaberle and got past Belfour.
It was the fourth goal of the season for Maltby -- all shorthanded. Detroit leads the NHL with seven shorthanded tallies.
Rookie Henrik Zetterberg also scored for the Red Wings.