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)