Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index 469a2083a7d1cb92882d8a3abf0b3ee287a5af8b..70c1f67e19254209ef681dd6568f540bfbb20399 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -431,7 +431,8 @@ SkPicture* SkPicture::CreateFromStream(SkStream* stream, InstallPixelRefProc pro |
if (NULL == data) { |
return NULL; |
} |
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight)); |
+ const SkPicture src(data, info.fWidth, info.fHeight); |
+ return Forwardport(src); |
} |
return NULL; |
@@ -451,7 +452,8 @@ SkPicture* SkPicture::CreateFromBuffer(SkReadBuffer& buffer) { |
if (NULL == data) { |
return NULL; |
} |
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight)); |
+ const SkPicture src(data, info.fWidth, info.fHeight); |
+ return Forwardport(src); |
} |
return NULL; |