Bug 296448 scaled_image leaks if scaled_image->Init() fails

patch by b.jacques@planet.nl r=roc sr=roc a=asa
This commit is contained in:
timeless%mozdev.org 2005-07-13 18:26:20 +00:00
parent 7cbd7eba7a
commit 52aaf74316

View File

@ -414,7 +414,8 @@ nsXFontAAScaledBitmap::GetScaledGreyImage(const char *aChar,
return PR_FALSE;
}
if (!scaled_image->Init()) {
NS_ASSERTION(0, "failed to create scaled_image");
NS_ASSERTION(0, "failed to initialize scaled_image");
delete scaled_image;
return PR_FALSE;
}
scaled_image->SetSize(&glyphMetrics);