From: reed@android.com Date: Fri, 8 Jan 2010 14:01:41 +0000 (+0000) Subject: fix memory leak X-Git-Tag: submit/tizen/20180928.044319~19286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0a529d0280dae3a1f0a700870cfb4c3b95745b2;p=platform%2Fupstream%2FlibSkiaSharp.git fix memory leak git-svn-id: http://skia.googlecode.com/svn/trunk@471 2bbb7eff-a529-9590-31e7-b0007b416f81 --- 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);