diff --git a/widget/src/gtk2/nsWindow.cpp b/widget/src/gtk2/nsWindow.cpp index 2add415b3b4b..4e4618350066 100644 --- a/widget/src/gtk2/nsWindow.cpp +++ b/widget/src/gtk2/nsWindow.cpp @@ -420,7 +420,8 @@ nsWindow::Destroy(void) gtk_widget_destroy(GTK_WIDGET(mContainer)); mContainer = nsnull; } - else if (mDrawingarea) { + + if (mDrawingarea) { g_object_unref(mDrawingarea); mDrawingarea = nsnull; }