Index: src/animator/SkAnimateMaker.cpp |
diff --git a/src/animator/SkAnimateMaker.cpp b/src/animator/SkAnimateMaker.cpp |
index 066f877a9b50e9dcce864a3b5e6a302dfc2b92bf..5186da04d814ef4c2c876589385611c8efc066a9 100644 |
--- a/src/animator/SkAnimateMaker.cpp |
+++ b/src/animator/SkAnimateMaker.cpp |
@@ -99,9 +99,9 @@ |
// SkDebugf("animator decode %s\n", uri); |
// SkStream* stream = SkStream::GetURIStream(fPrefix.c_str(), uri); |
- std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(uri); |
- if (stream) { |
- bool success = decodeStream(stream.get()); |
+ SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(uri)); |
+ if (stream.get()) { |
+ bool success = decodeStream(stream); |
if (hasError() && fError.hasNoun() == false) |
fError.setNoun(uri); |
return success; |