Fix a Ref count bug in SkFontHost_win_dw.cpp
https://codereview.appspot.com/6495133 Props tinytail. git-svn-id: http://skia.googlecode.com/svn/trunk@5568 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f92cfcf362
commit
0729b62373
@ -688,9 +688,7 @@ SkTypeface* SkCreateTypefaceFromDWriteFont(IDWriteFontFace* fontFace,
|
||||
StreamFontFileLoader* fontFileLoader = NULL,
|
||||
IDWriteFontCollectionLoader* fontCollectionLoader = NULL) {
|
||||
SkTypeface* face = SkTypefaceCache::FindByProcAndRef(FindByDWriteFont, font);
|
||||
if (face) {
|
||||
face->ref();
|
||||
} else {
|
||||
if (NULL == face) {
|
||||
face = DWriteFontTypeface::Create(fontFace, font, fontFamily,
|
||||
fontFileLoader, fontCollectionLoader);
|
||||
SkTypefaceCache::Add(face, get_style(font), fontCollectionLoader != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user