Index: tests/YUVTest.cpp |
diff --git a/tests/YUVTest.cpp b/tests/YUVTest.cpp |
index e1d8961205677479e81b5d59e0eed3bd4c0f145e..f7b3306b98fa935b02b5cda64c1caf6506c3d442 100644 |
--- a/tests/YUVTest.cpp |
+++ b/tests/YUVTest.cpp |
@@ -25,7 +25,7 @@ static void codec_yuv(skiatest::Reporter* reporter, |
INFOF(reporter, "Missing resource '%s'\n", path); |
return; |
} |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.detach())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release())); |
REPORTER_ASSERT(reporter, codec); |
if (!codec) { |
return; |