Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index fac283d5b13a2559d75875577361c41a75ff4086..771fc9ea722fee04cfd3cc1ca488e68cdd6f0734 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -86,7 +86,7 @@ static void test_empty_image(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, NULL == SkImage::NewRasterCopy(info, NULL, 0)); |
REPORTER_ASSERT(reporter, NULL == SkImage::NewRasterData(info, NULL, 0)); |
REPORTER_ASSERT(reporter, NULL == SkImage::NewFromRaster(info, NULL, 0, NULL, NULL)); |
- REPORTER_ASSERT(reporter, NULL == SkImage::NewFromGenerator(SkNEW(EmptyGenerator))); |
+ REPORTER_ASSERT(reporter, NULL == SkImage::NewFromGenerator(new EmptyGenerator)); |
} |
static void test_empty_surface(skiatest::Reporter* reporter, GrContext* ctx) { |