bug #28559, fix device context leak, r=dcone

git-svn-id: svn://10.0.0.236/trunk@64057 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2000-03-24 21:41:15 +00:00
parent ab80253df8
commit 1428a5f294

View File

@@ -296,8 +296,8 @@ NS_IMETHODIMP nsImageMac::Draw(nsIRenderingContext &aContext, nsDrawingSurface a
NS_ASSERTION(destPixels, "No dest pixels!");
// can only do this if we are NOT printing
nsDeviceContextMac *theDevContext;
aContext.GetDeviceContext(theDevContext);
nsCOMPtr<nsDeviceContextMac> theDevContext;
aContext.GetDeviceContext(*getter_AddRefs(theDevContext));
if (theDevContext->IsPrinter()) // we are printing
{
if (!mAlphaGWorld)