Fix a leak of the device context. r=bruce.

git-svn-id: svn://10.0.0.236/trunk@63366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%uiuc.edu
2000-03-18 04:10:13 +00:00
parent 8a0ea8c8e5
commit 857da77e99

View File

@@ -155,6 +155,8 @@ nsFrameImageLoader::Init(nsIPresContext* aPresContext,
aPresContext->GetTwipsToPixels(&t2p);
aPresContext->GetDeviceContext(&theDC);
theDC->GetCanonicalPixelScale(devScale);
NS_RELEASE(theDC);
desiredWidth = NSToCoordRound((mDesiredSize.width * t2p)/devScale);
desiredHeight = NSToCoordRound((mDesiredSize.height * t2p)/devScale);
}