diff --git a/gfx/thebes/src/gfxFT2Fonts.cpp b/gfx/thebes/src/gfxFT2Fonts.cpp index 8c981d87329..6146bf32097 100644 --- a/gfx/thebes/src/gfxFT2Fonts.cpp +++ b/gfx/thebes/src/gfxFT2Fonts.cpp @@ -110,10 +110,12 @@ FontEntry::~FontEntry() // Do nothing for mFTFace here since FTFontDestroyFunc is called by cairo. mFTFace = nsnull; +#ifndef ANDROID if (mFontFace) { cairo_font_face_destroy(mFontFace); mFontFace = nsnull; } +#endif } /* static */