diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 00f0afb7af9c..e0546a36ff03 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -2220,7 +2220,7 @@ nsWindow::OnExposeEvent(cairo_t *cr) } } # ifdef MOZ_HAVE_SHMIMAGE - if (nsShmImage::UseShm() && MOZ_LIKELY(!mIsDestroyed)) { + if (mShmImage && MOZ_LIKELY(!mIsDestroyed)) { #if (MOZ_WIDGET_GTK == 2) mShmImage->Put(mGdkWindow, exposeRegion.mRects, exposeRegion.mRectsEnd); #else