Bug 666414 followup - Fix the Android build bustage
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 26 Sep 2011 16:41:38 -0400
changeset 78897 ebccffe6d7e6ad79bc27b2b4fb421048cb0fe649
parent 78896 f2da319b3f6a660527bd3e7d45540af777ca523f
child 78898 b71570ffc9686a3647805ea8dbddfadf223ae8bd
child 78922 1227cb5bcd8bbae8c97822290b982e07d0990e9e
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs666414
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 666414 followup - Fix the Android build bustage
dom/plugins/base/android/ANPTypeface.cpp
--- a/dom/plugins/base/android/ANPTypeface.cpp
+++ b/dom/plugins/base/android/ANPTypeface.cpp
@@ -57,17 +57,17 @@ anp_typeface_createFromName(const char n
                       NS_NewPermanentAtom(NS_LITERAL_STRING("en")),
                       0.0,
                       PR_FALSE, PR_FALSE,
                       NS_LITERAL_STRING(""),
                       NS_LITERAL_STRING(""));
   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;
   }
   return tf;
 }
 
 ANPTypeface*
 anp_typeface_createFromTypeface(const ANPTypeface* family,