commit | d1ce77d548ab098c2f455e9b0fa1f195e75cd8ed | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 09 12:51:09 2013 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 09 12:51:09 2013 +0000 |
tree | c399f0b102d76a94e4727259af44132b2b02c648 | |
parent | 12eb7811e305d7731f5d070742a6ac6814c30cc4 [diff] |
Fix valgrind uninitialized memory complaint https://codereview.chromium.org/26469003/ git-svn-id: http://skia.googlecode.com/svn/trunk@11664 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 96a5560..61c1e2d 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp
@@ -84,6 +84,7 @@ SkBitmap testBitmap; testBitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); testBitmap.allocPixels(); + testBitmap.eraseColor(0); SkRRect testRRect; testRRect.setRectXY(testRect, SK_Scalar1, SK_Scalar1);