mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
7cbd7eba7a
commit
52aaf74316
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user