Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index 2deaf21d76cad5006cc556b6cedded38701a7b97..c4446ae16d67ef5671c817af569f188a73fe177d 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -36,7 +36,7 @@ static void data_unref_proc(void* skdata, const void*, size_t) { |
static CGDataProviderRef SkStreamToDataProvider(SkStream* stream) { |
// TODO: use callbacks, so we don't have to load all the data into RAM |
- SkData* skdata = SkCopyStreamToData(stream); |
+ SkData* skdata = SkCopyStreamToData(stream).release(); |
if (!skdata) { |
return nullptr; |
} |