bug 739858 - fix bustage due to missing cast in transplanted patch. a=bustage
authorJonathan Kew <jkew@mozilla.com>
Tue, 22 May 2012 19:43:38 +0100
changeset 95841 9620de534159e6d6575ca482fbc2053186022f4d
parent 95840 ce3cc54fe3bbc33cf1c8cd7e080aeed7e6cc192f
child 95842 7bb1691988a5ff8ab52b3c50d855f6b50645a1b6
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs739858
milestone14.0a2
bug 739858 - fix bustage due to missing cast in transplanted patch. a=bustage
gfx/thebes/gfxUserFontSet.cpp
--- a/gfx/thebes/gfxUserFontSet.cpp
+++ b/gfx/thebes/gfxUserFontSet.cpp
@@ -624,17 +624,17 @@ gfxUserFontSet::IncrementGeneration()
 gfxFontEntry*
 gfxUserFontSet::LoadFont(gfxProxyFontEntry *aProxy,
                          const PRUint8 *aFontData, PRUint32 &aLength)
 {
     // if the proxy doesn't belong to a family, we just bail as it won't be
     // accessible/usable anyhow (maybe the font set got modified right as
     // the load was completing?)
     if (!aProxy->Family()) {
-        NS_Free(aFontData);
+        NS_Free(const_cast<PRUint8*>(aFontData));
         return nsnull;
     }
 
     gfxFontEntry *fe = nsnull;
 
     gfxUserFontType fontType =
         gfxFontUtils::DetermineFontDataType(aFontData, aLength);