Index: tests/FrontBufferedStreamTest.cpp |
diff --git a/tests/FrontBufferedStreamTest.cpp b/tests/FrontBufferedStreamTest.cpp |
index d2bb43ab3ccf7dbdc3ff3f05032d30b51cec0061..445f0bf4c9df19d745ce941912c145defb9984a0 100644 |
--- a/tests/FrontBufferedStreamTest.cpp |
+++ b/tests/FrontBufferedStreamTest.cpp |
@@ -285,5 +285,5 @@ DEF_TEST(ShortFrontBufferedStream, reporter) { |
// This will fail to create a codec. However, what we really want to test is that we |
// won't read past the end of the stream. |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.detach())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release())); |
} |