summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/window/gtksalmenu.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx
index 3e2664e2f24b..65ee72b9e2e0 100644
--- a/vcl/unx/gtk/window/gtksalmenu.cxx
+++ b/vcl/unx/gtk/window/gtksalmenu.cxx
@@ -401,7 +401,8 @@ GtkSalMenu::~GtkSalMenu()
{
SolarMutexGuard aGuard;
if ( mbMenuBar == sal_True )
- ((GtkSalFrame*) mpFrame)->SetMenu( NULL );
+ if ( mpFrame )
+ ((GtkSalFrame*) mpFrame)->SetMenu( NULL );
maItems.clear();
}