Index: gm/dftext.cpp |
diff --git a/gm/dftext.cpp b/gm/dftext.cpp |
index 8ac36cce4cea06ec6ce1a0b97a095846becb5ad7..30b82d77230d32389d88e53fc606ce7b28e4afd1 100755 |
--- a/gm/dftext.cpp |
+++ b/gm/dftext.cpp |
@@ -25,13 +25,13 @@ public: |
protected: |
void onOnceBeforeDraw() SK_OVERRIDE { |
SkString filename = GetResourcePath("/Funkster.ttf"); |
- SkAutoTUnref<SkFILEStream> stream(new SkFILEStream(filename.c_str())); |
+ SkAutoTDelete<SkFILEStream> stream(new SkFILEStream(filename.c_str())); |
if (!stream->isValid()) { |
SkDebugf("Could not find Funkster.ttf, please set --resourcePath correctly.\n"); |
return; |
} |
- fTypeface = SkTypeface::CreateFromStream(stream); |
+ fTypeface = SkTypeface::CreateFromStream(stream.detach()); |
} |
uint32_t onGetFlags() const SK_OVERRIDE { |