diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 19:56:49 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 19:56:49 +0000 |
commit | c19c19111c79f6a0cadcc1ec00527c0f940edd60 (patch) | |
tree | 935fd5240e7492f8f199fde6d59ca44b0f118c5e | |
parent | 8c020612bad088d1a26dd663f0a806deeef8029b (diff) |
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
-rw-r--r-- | tools/render_pictures_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp index 5d64e74bb0..e5cb74eb99 100644 --- a/tools/render_pictures_main.cpp +++ b/tools/render_pictures_main.cpp @@ -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); |