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