Index: src/utils/SkFrontBufferedStream.cpp |
diff --git a/src/utils/SkFrontBufferedStream.cpp b/src/utils/SkFrontBufferedStream.cpp |
index ad5ae6e4afb2a5db8a94bc5b3fd6ddfc7d8d971e..562d376c1c9badd4f637810ae406a14b2f2f0752 100644 |
--- a/src/utils/SkFrontBufferedStream.cpp |
+++ b/src/utils/SkFrontBufferedStream.cpp |
@@ -31,7 +31,7 @@ public: |
SkStreamRewindable* duplicate() const SK_OVERRIDE { return NULL; } |
private: |
- SkAutoTUnref<SkStream> fStream; |
+ SkAutoTDelete<SkStream> fStream; |
const bool fHasLength; |
const size_t fLength; |
// Current offset into the stream. Always >= 0. |
@@ -71,7 +71,7 @@ SkStreamRewindable* SkFrontBufferedStream::Create(SkStream* stream, size_t buffe |
} |
FrontBufferedStream::FrontBufferedStream(SkStream* stream, size_t bufferSize) |
- : fStream(SkRef(stream)) |
+ : fStream(stream) |
, fHasLength(stream->hasPosition() && stream->hasLength()) |
, fLength(stream->getLength() - stream->getPosition()) |
, fOffset(0) |