diff --git a/mozilla/widget/src/motif/nsWindow.cpp b/mozilla/widget/src/motif/nsWindow.cpp index 6399620fe6a..cace965f5a2 100644 --- a/mozilla/widget/src/motif/nsWindow.cpp +++ b/mozilla/widget/src/motif/nsWindow.cpp @@ -833,7 +833,8 @@ void nsWindow::SetFont(const nsFont &aFont) if (mContext == nsnull) { return; } - nsIFontCache* fontCache = mContext->GetFontCache(); + nsIFontCache* fontCache; + mContext->GetFontCache(fontCache); if (fontCache != nsnull) { nsIFontMetrics* metrics = fontCache->GetMetricsFor(aFont); if (metrics != nsnull) {