Index: src/images/SkMovie.cpp |
diff --git a/src/images/SkMovie.cpp b/src/images/SkMovie.cpp |
index a0a37dcffa36abe038b4f43b28adb1bebce6ec65..bf94f281c8ceff2c816490876239386062ec1cbf 100644 |
--- a/src/images/SkMovie.cpp |
+++ b/src/images/SkMovie.cpp |
@@ -89,6 +89,6 @@ |
} |
SkMovie* SkMovie::DecodeFile(const char path[]) { |
- std::unique_ptr<SkStreamRewindable> stream = SkStream::MakeFromFile(path); |
- return stream ? SkMovie::DecodeStream(stream.get()) : nullptr; |
+ SkAutoTDelete<SkStreamRewindable> stream(SkStream::NewFromFile(path)); |
+ return stream.get() ? SkMovie::DecodeStream(stream) : nullptr; |
} |