Fix coverity defects in FontHost_FreeType

Reviewed in https://codereview.appspot.com/5940049/

Review URL: https://codereview.appspot.com/5942043

git-svn-id: http://skia.googlecode.com/svn/trunk@3536 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2012-03-28 21:24:27 +00:00
parent 998547641c
commit 9af25f3d98

View File

@ -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;
}
}