Bug 666414 followup - Fix the Android build bustage

This commit is contained in:
Ehsan Akhgari 2011-09-26 16:41:38 -04:00
Родитель a872e2a3ef
Коммит 6e5e9e8ae4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -62,7 +62,7 @@ anp_typeface_createFromName(const char name[], ANPTypefaceStyle aStyle)
ANPTypeface* tf = new ANPTypeface;
gfxAndroidPlatform * p = (gfxAndroidPlatform*)gfxPlatform::GetPlatform();
nsRefPtr<gfxFont> font = gfxFT2Font::GetOrMakeFont(NS_ConvertASCIItoUTF16(name), &style);
tf->mFont = font.forget();
font.forget(&tf->mFont);
if (tf->mFont) {
++tf->mRefCnt;
}