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:
parent
8c020612ba
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user