Index: tests/FontHostStreamTest.cpp |
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp |
index 18c74605bfffc8fb220925642648d15c69d2ef2b..affda98cf60fd4c611776462565194d6ca45e13d 100644 |
--- a/tests/FontHostStreamTest.cpp |
+++ b/tests/FontHostStreamTest.cpp |
@@ -96,8 +96,8 @@ DEF_TEST(FontHostStream, reporter) { |
} |
int ttcIndex; |
- SkAutoTUnref<SkStream> fontData(origTypeface->openStream(&ttcIndex)); |
- SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData); |
+ SkAutoTDelete<SkStream> fontData(origTypeface->openStream(&ttcIndex)); |
+ SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData.detach()); |
SkFontDescriptor desc; |
bool isLocalStream = false; |