fix memory leak

git-svn-id: http://skia.googlecode.com/svn/trunk@471 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2010-01-08 14:01:41 +00:00
parent 99e1b90d5b
commit d0a529d028

View File

@ -108,7 +108,7 @@ static void TestBitmapCopy(skiatest::Reporter* reporter) {
ct = init_ctable(); ct = init_ctable();
} }
src.allocPixels(ct); src.allocPixels(ct);
ct->safeRef(); SkSafeUnref(ct);
init_src(src); init_src(src);
bool success = src.copyTo(&dst, gPairs[j].fConfig); bool success = src.copyTo(&dst, gPairs[j].fConfig);