| Index: src/ports/SkFontHost_win.cpp
|
| diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
|
| index 6f4a60341f1ccb682492f8a006d9c9758fe5d23f..60c77eed7e5612ed9d03fc27fc02494543ac1b15 100755
|
| --- a/src/ports/SkFontHost_win.cpp
|
| +++ b/src/ports/SkFontHost_win.cpp
|
| @@ -2486,14 +2486,12 @@ protected:
|
|
|
| SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE {
|
| // could be in base impl
|
| - SkAutoTUnref<SkStream> stream(SkNEW_ARGS(SkMemoryStream, (data)));
|
| - return this->createFromStream(stream);
|
| + return this->createFromStream(SkNEW_ARGS(SkMemoryStream, (data)));
|
| }
|
|
|
| SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE {
|
| // could be in base impl
|
| - SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path));
|
| - return this->createFromStream(stream);
|
| + return this->createFromStream(SkStream::NewFromFile(path));
|
| }
|
|
|
| virtual SkTypeface* onLegacyCreateTypeface(const char familyName[],
|
|
|