Bug 750575; use nsCOMPtr around nsIPresShell in canvas code. r=roc

This commit is contained in:
Nicholas Cameron 2012-06-12 10:48:42 -07:00
parent 12f6753057
commit 1cbb2d0f07
2 changed files with 12 additions and 12 deletions

View File

@ -2840,7 +2840,7 @@ nsCanvasRenderingContext2D::DrawOrMeasureText(const nsAString& aRawText,
return NS_ERROR_FAILURE;
}
nsIPresShell* presShell = GetPresShell();
nsCOMPtr<nsIPresShell> presShell = GetPresShell();
if (!presShell)
return NS_ERROR_FAILURE;

View File

@ -3155,7 +3155,7 @@ nsCanvasRenderingContext2DAzure::DrawOrMeasureText(const nsAString& aRawText,
return NS_ERROR_FAILURE;
}
nsIPresShell* presShell = GetPresShell();
nsCOMPtr<nsIPresShell> presShell = GetPresShell();
if (!presShell)
return NS_ERROR_FAILURE;