Gallinari netted six key points down the stretch and JaVale McGee (15 points) provided a decisive tip-in with 46.7 seconds remaining as the Nuggets doused the Grizzlies' bid to set a new franchise consecutive wins record.
Kenneth Faried chipped in a double-double of 13 points and 13 rebounds as Denver ended its own three-game slide.
Zach Randolph helped out with 12 points and 13 rebounds in the loss.
Boston schools pull out free condoms over wrapping complaints
Aaron Carter is still in love with Hilary Duff