Index: gm/coloremoji.cpp |
diff --git a/gm/coloremoji.cpp b/gm/coloremoji.cpp |
index c083f3131002e2abbd076cd6665fac6472debbac..5d8c6ba8e3c3979a3bdef8166f984734acccb9df 100644 |
--- a/gm/coloremoji.cpp |
+++ b/gm/coloremoji.cpp |
@@ -56,13 +56,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()); |
} |
SkString onShortName() SK_OVERRIDE { |