From 23308bb6e770d24bb95b9ac0631fb9f045c2732d Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 26 Sep 2011 16:41:38 -0400 Subject: [PATCH] Bug 666414 followup - Fix the Android build bustage --- dom/plugins/base/android/ANPTypeface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/plugins/base/android/ANPTypeface.cpp b/dom/plugins/base/android/ANPTypeface.cpp index 78e6b1a5787..067f810e308 100644 --- a/dom/plugins/base/android/ANPTypeface.cpp +++ b/dom/plugins/base/android/ANPTypeface.cpp @@ -62,7 +62,7 @@ anp_typeface_createFromName(const char name[], ANPTypefaceStyle aStyle) ANPTypeface* tf = new ANPTypeface; gfxAndroidPlatform * p = (gfxAndroidPlatform*)gfxPlatform::GetPlatform(); nsRefPtr font = gfxFT2Font::GetOrMakeFont(NS_ConvertASCIItoUTF16(name), &style); - tf->mFont = font.forget(); + font.forget(&tf->mFont); if (tf->mFont) { ++tf->mRefCnt; }