Index: src/c/sk_surface.cpp |
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp |
index 79036f75fe88a8f44092af2b65a214f5f4d7a002..75a1643775fd26387c1e8c22d4c53fc7c82f8305 100644 |
--- a/src/c/sk_surface.cpp |
+++ b/src/c/sk_surface.cpp |
@@ -482,7 +482,7 @@ sk_canvas_t* sk_picture_recorder_begin_recording(sk_picture_recorder_t* crec, |
} |
sk_picture_t* sk_picture_recorder_end_recording(sk_picture_recorder_t* crec) { |
- return ToPicture(AsPictureRecorder(crec)->endRecording()); |
+ return ToPicture(AsPictureRecorder(crec)->finishRecordingAsPicture().release()); |
} |
void sk_picture_ref(sk_picture_t* cpic) { |