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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user