Index: gm/dcshader.cpp |
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp |
index 66b0c76b3a051c718c4fddd832e1b1c8c15d9627..07af695e476cab1443f4c7a0dc5b2b9faac9e3e4 100644 |
--- a/gm/dcshader.cpp |
+++ b/gm/dcshader.cpp |
@@ -216,13 +216,13 @@ protected: |
void setFont(SkPaint* paint) SK_OVERRIDE { |
if (!fTypeface) { |
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.reset(SkTypeface::CreateFromStream(stream)); |
+ fTypeface.reset(SkTypeface::CreateFromStream(stream.detach())); |
} |
paint->setTypeface(fTypeface); |
} |