Index: src/ports/SkFontHost_FreeType.cpp |
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp |
index 459abbc9b800fe53a567ab910fe4eabb76c3abc1..3f23a92ff842eac39dca2892b376acfb4c71dd48 100644 |
--- a/src/ports/SkFontHost_FreeType.cpp |
+++ b/src/ports/SkFontHost_FreeType.cpp |
@@ -233,18 +233,15 @@ private: |
/////////////////////////////////////////////////////////////////////////// |
struct SkFaceRec { |
- SkFaceRec* fNext; |
- FT_Face fFace; |
- FT_StreamRec fFTStream; |
- SkStream* fSkStream; |
- uint32_t fRefCnt; |
- uint32_t fFontID; |
- |
- // assumes ownership of the stream, will call unref() when its done |
+ SkFaceRec* fNext; |
+ FT_Face fFace; |
+ FT_StreamRec fFTStream; |
+ SkAutoTDelete<SkStream> fSkStream; |
+ uint32_t fRefCnt; |
+ uint32_t fFontID; |
+ |
+ // assumes ownership of the stream, will delete when its done |
SkFaceRec(SkStream* strm, uint32_t fontID); |
- ~SkFaceRec() { |
- fSkStream->unref(); |
- } |
}; |
extern "C" { |