Index: src/images/SkJpegUtility.cpp |
diff --git a/src/images/SkJpegUtility.cpp b/src/images/SkJpegUtility.cpp |
index e17b55b31ec29742261adc82d90eb86c521df001..937c5ec6f6f343f44b7a1fe06b9df7d1846fab91 100644 |
--- a/src/images/SkJpegUtility.cpp |
+++ b/src/images/SkJpegUtility.cpp |
@@ -96,7 +96,7 @@ static void sk_term_source(j_decompress_ptr /*cinfo*/) {} |
/////////////////////////////////////////////////////////////////////////////// |
skjpeg_source_mgr::skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder) |
- : fStream(SkRef(stream)) |
+ : fStream(stream) |
, fDecoder(decoder) { |
init_source = sk_init_source; |
@@ -110,10 +110,6 @@ skjpeg_source_mgr::skjpeg_source_mgr(SkStream* stream, SkImageDecoder* decoder) |
// SkDebugf("**************** use memorybase %p %d\n", fMemoryBase, fMemoryBaseSize); |
} |
-skjpeg_source_mgr::~skjpeg_source_mgr() { |
- SkSafeUnref(fStream); |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
static void sk_init_destination(j_compress_ptr cinfo) { |