commit | cd62ecf39a81d9d85a7eb8508e14ce2834899e88 | [log] [tgz] |
---|---|---|
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 02 17:43:25 2012 +0000 |
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 02 17:43:25 2012 +0000 |
tree | 83146ab347a44c02e278604341fcdf14c20bc1dc | |
parent | 1bfccadae265a2ec0e5adfcc8fe98bee07b73835 [diff] [blame] |
Fixing leak of SkPixelRef object in CanvasTest Review URL: https://codereview.appspot.com/6441095 git-svn-id: http://skia.googlecode.com/svn/trunk@4925 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 5401026..b58657e 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp
@@ -885,6 +885,9 @@ SkPictureTester::TestPictureFlattenedObjectReuse(reporter, testStepArray()[testStep], 0); } + + // Explicitly call reset(), so we don't leak the pixels (since kTestBitmap is a global) + kTestBitmap.reset(); } #include "TestClassDef.h"