From d0a529d0280dae3a1f0a700870cfb4c3b95745b2 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Fri, 8 Jan 2010 14:01:41 +0000 Subject: [PATCH] fix memory leak git-svn-id: http://skia.googlecode.com/svn/trunk@471 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/BitmapCopyTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BitmapCopyTest.cpp b/tests/BitmapCopyTest.cpp index 2ae7b0af50..be3850e9be 100644 --- a/tests/BitmapCopyTest.cpp +++ b/tests/BitmapCopyTest.cpp @@ -108,7 +108,7 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) { ct = init_ctable(); } src.allocPixels(ct); - ct->safeRef(); + SkSafeUnref(ct); init_src(src); bool success = src.copyTo(&dst, gPairs[j].fConfig); -- 2.34.1