Index: src/core/SkPictureData.cpp |
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
index 0ba28b97e341a3c9a2db08e18bc2888ebea36087..a27c31a2979102f6d984c33a10c6aeea53000ca3 100644 |
--- a/src/core/SkPictureData.cpp |
+++ b/src/core/SkPictureData.cpp |
@@ -559,7 +559,7 @@ SkPictureData* SkPictureData::CreateFromStream(SkStream* stream, |
if (!data->parseStream(stream, proc, topLevelTFPlayback)) { |
return nullptr; |
} |
- return data.detach(); |
+ return data.release(); |
} |
SkPictureData* SkPictureData::CreateFromBuffer(SkReadBuffer& buffer, |
@@ -570,7 +570,7 @@ SkPictureData* SkPictureData::CreateFromBuffer(SkReadBuffer& buffer, |
if (!data->parseBuffer(buffer)) { |
return nullptr; |
} |
- return data.detach(); |
+ return data.release(); |
} |
bool SkPictureData::parseStream(SkStream* stream, |