зеркало из https://github.com/mozilla/moz-skia.git
Fixing crash in render_pictures when failing to create referenceBitmap for --validate
Review URL: https://codereview.chromium.org/12800002 git-svn-id: http://skia.googlecode.com/svn/trunk@8119 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
8c020612ba
Коммит
c19c19111c
|
@ -163,7 +163,7 @@ static bool render_picture(const SkString& inputPath, const SkString* outputDir,
|
|||
success = render_picture(inputPath, NULL, referenceRenderer,
|
||||
&referenceBitmap);
|
||||
|
||||
if (!success || !referenceBitmap) {
|
||||
if (!success || NULL == referenceBitmap || NULL == referenceBitmap->getPixels()) {
|
||||
SkDebugf("Failed to draw the reference picture.\n");
|
||||
SkDELETE(bitmap);
|
||||
SkDELETE(referenceBitmap);
|
||||
|
|
Загрузка…
Ссылка в новой задаче