aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index b16f781563..025c68668f 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -227,7 +227,7 @@ extern "C" {
}
SkFaceRec::SkFaceRec(SkStream* strm, uint32_t fontID)
- : fSkStream(strm), fFontID(fontID) {
+ : fNext(NULL), fSkStream(strm), fRefCnt(1), fFontID(fontID) {
// SkDEBUGF(("SkFaceRec: opening %s (%p)\n", key.c_str(), strm));
sk_bzero(&fFTStream, sizeof(fFTStream));
@@ -287,7 +287,6 @@ static SkFaceRec* ref_ft_face(uint32_t fontID) {
//fprintf(stderr, "Opened font '%s'\n", filename.c_str());
rec->fNext = gFaceRecHead;
gFaceRecHead = rec;
- rec->fRefCnt = 1;
return rec;
}
}