diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 0f2ce6a0f6ac..c20e6206f014 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -77,6 +77,7 @@ nsPresContext::nsPresContext() mWidgetRenderingMode = eWidgetRendering_Gfx; mLookAndFeel = nsnull; + mShell = nsnull; #ifdef _WIN32 // XXX This needs to be elsewhere, e.g., part of nsIDeviceContext diff --git a/layout/base/src/nsPresContext.cpp b/layout/base/src/nsPresContext.cpp index 0f2ce6a0f6ac..c20e6206f014 100644 --- a/layout/base/src/nsPresContext.cpp +++ b/layout/base/src/nsPresContext.cpp @@ -77,6 +77,7 @@ nsPresContext::nsPresContext() mWidgetRenderingMode = eWidgetRendering_Gfx; mLookAndFeel = nsnull; + mShell = nsnull; #ifdef _WIN32 // XXX This needs to be elsewhere, e.g., part of nsIDeviceContext