diff --git a/widget/xpwidgets/nsBaseWidget.cpp b/widget/xpwidgets/nsBaseWidget.cpp index 1e13cb095722..67fd25eff15a 100644 --- a/widget/xpwidgets/nsBaseWidget.cpp +++ b/widget/xpwidgets/nsBaseWidget.cpp @@ -845,6 +845,7 @@ void nsBaseWidget::CreateCompositor() if (!lf) { delete lm; mCompositorChild = nsnull; + return; } lf->SetShadowManager(shadowManager); lf->SetParentBackendType(LayerManager::LAYERS_OPENGL);