Index: src/animator/SkAnimator.cpp |
diff --git a/src/animator/SkAnimator.cpp b/src/animator/SkAnimator.cpp |
index c5aabbba4bdc62b7dd2ba81fed10ebf5e20e6262..ee75ab14affa8fc49f49df9e0ba6a200054338d6 100644 |
--- a/src/animator/SkAnimator.cpp |
+++ b/src/animator/SkAnimator.cpp |
@@ -82,10 +82,10 @@ |
// SkDebugf("animator decode %s\n", uri); |
// SkStream* stream = SkStream::GetURIStream(fMaker->fPrefix.c_str(), uri); |
- std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(uri); |
- if (stream) { |
+ SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(uri)); |
+ if (stream.get()) { |
this->setURIBase(uri); |
- return decodeStream(stream.get()); |
+ return decodeStream(stream); |
} else { |
return false; |
} |