From 1428a5f29420568a5e2caa052ea445778aa82ae1 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 24 Mar 2000 21:41:15 +0000 Subject: [PATCH] bug #28559, fix device context leak, r=dcone git-svn-id: svn://10.0.0.236/trunk@64057 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/mac/nsImageMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/gfx/src/mac/nsImageMac.cpp b/mozilla/gfx/src/mac/nsImageMac.cpp index e5449d4138b..1466b9d4818 100644 --- a/mozilla/gfx/src/mac/nsImageMac.cpp +++ b/mozilla/gfx/src/mac/nsImageMac.cpp @@ -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 theDevContext; + aContext.GetDeviceContext(*getter_AddRefs(theDevContext)); if (theDevContext->IsPrinter()) // we are printing { if (!mAlphaGWorld)