зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a32dbb0206
Коммит
fb9d8eeba8
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче