Index: trunk/src/ports/SkFontHost_fontconfig.cpp |
=================================================================== |
--- trunk/src/ports/SkFontHost_fontconfig.cpp (revision 8103) |
+++ trunk/src/ports/SkFontHost_fontconfig.cpp (working copy) |
@@ -42,7 +42,7 @@ |
return fci; |
} |
fci = SkFontConfigInterface::GetSingletonDirectInterface(); |
- SkFontConfigInterface::SetGlobal(fci); |
+ SkFontConfigInterface::SetGlobal(fci)->unref(); |
} |
} |
@@ -128,6 +128,7 @@ |
FindRec rec(familyName, style); |
SkTypeface* face = SkTypefaceCache::FindByProcAndRef(find_proc, &rec); |
if (face) { |
+ SkDebugf("found cached face <%s> <%s> %p [%d]\n", familyName, ((FontConfigTypeface*)face)->getFamilyName(), face, face->getRefCnt()); |
return face; |
} |
@@ -142,6 +143,7 @@ |
face = SkNEW_ARGS(FontConfigTypeface, (outStyle, indentity, outFamilyName)); |
SkTypefaceCache::Add(face, style); |
+ SkDebugf("add face <%s> <%s> %p [%d]\n", familyName, outFamilyName.c_str(), face, face->getRefCnt()); |
return face; |
} |