diff options
Diffstat (limited to 'tests/BadIcoTest.cpp')
-rw-r--r-- | tests/BadIcoTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/BadIcoTest.cpp b/tests/BadIcoTest.cpp index 670c2ac311..21343a2a5c 100644 --- a/tests/BadIcoTest.cpp +++ b/tests/BadIcoTest.cpp @@ -32,7 +32,7 @@ DEF_TEST(BadImage, reporter) { for (size_t i = 0; i < SK_ARRAY_COUNT(badImages); ++i) { SkString resourcePath = SkOSPath::Join(badImagesFolder, badImages[i]); std::unique_ptr<SkStream> stream(GetResourceAsStream(resourcePath.c_str())); - std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release())); + std::unique_ptr<SkCodec> codec(SkCodec::MakeFromStream(std::move(stream))); // These images are corrupt. It's not important whether we succeed/fail in codec // creation or decoding. We just want to make sure that we don't crash. |