Index: tests/CTest.cpp |
diff --git a/tests/CTest.cpp b/tests/CTest.cpp |
index 8127e9b10641608890e6f1e66cec849196cb5aed..81702ac7d08287b42c3f2c0fbf67b6c6fbc265f9 100644 |
--- a/tests/CTest.cpp |
+++ b/tests/CTest.cpp |
@@ -31,7 +31,7 @@ static void test_c(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); |
sk_paint_delete(paint); |
- sk_surface_delete(surface); |
+ sk_surface_unref(surface); |
} |
DEF_TEST(C_API, reporter) { |