Index: src/c/sk_surface.cpp |
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp |
index 8dd7a6c503c5884b705eeba5573da88b4db21cde..79036f75fe88a8f44092af2b65a214f5f4d7a002 100644 |
--- a/src/c/sk_surface.cpp |
+++ b/src/c/sk_surface.cpp |
@@ -463,7 +463,7 @@ sk_canvas_t* sk_surface_get_canvas(sk_surface_t* csurf) { |
sk_image_t* sk_surface_new_image_snapshot(sk_surface_t* csurf) { |
SkSurface* surf = (SkSurface*)csurf; |
- return (sk_image_t*)surf->newImageSnapshot(); |
+ return (sk_image_t*)surf->makeImageSnapshot().release(); |
} |
/////////////////////////////////////////////////////////////////////////////////////////// |