| commit | 701b40543d5d124dfa1e59b051cba9d2aaf61670 | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Nov 18 16:26:25 2013 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Nov 18 16:26:25 2013 +0000 |
| tree | 25383c51b0a3dd19ce67fb947ad74885bb360af0 | |
| parent | e61a86cfa00ea393ecc4a71fca94e1d476a37ecc [diff] [blame] |
Fix DocumentTest/SkDocument memory leaks https://codereview.chromium.org/72833002/ git-svn-id: http://skia.googlecode.com/svn/trunk@12302 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/DocumentTest.cpp b/tests/DocumentTest.cpp index 1838687..a717ac7 100644 --- a/tests/DocumentTest.cpp +++ b/tests/DocumentTest.cpp
@@ -9,7 +9,7 @@ static void test_empty(skiatest::Reporter* reporter) { SkDynamicMemoryWStream stream; - SkDocument* doc = SkDocument::CreatePDF(&stream); + SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&stream)); doc->close();