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 94348 9620de534159e6d6575ca482fbc2053186022f4d
parent 94347 ce3cc54fe3bbc33cf1c8cd7e080aeed7e6cc192f
child 94349 7bb1691988a5ff8ab52b3c50d855f6b50645a1b6
push id1343
push userjkew@mozilla.com
push dateTue, 22 May 2012 18:44:07 +0000
treeherdermozilla-aurora@9620de534159 [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);