Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index a1aa35e61e09f1447e65f70271d9c49cd3db46d6..1df56a52d784bbd85ca1dc58d2651b021bb7d78e 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -310,7 +310,10 @@ SkPicture* SkPicture::CreateFromStream(SkStream* stream, InstallPixelRefProc pro |
SkPicturePlayback* playback; |
// Check to see if there is a playback to recreate. |
if (stream->readBool()) { |
- playback = SkNEW_ARGS(SkPicturePlayback, (stream, info, proc)); |
+ playback = SkPicturePlayback::CreateFromStream(stream, info, proc); |
+ if (NULL == playback) { |
+ return NULL; |
+ } |
} else { |
playback = NULL; |
} |