summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorAntonio Fernandez <antonio.fernandez@aentos.es>2012-10-06 14:59:47 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-14 13:52:56 +0100
commitce989d9a550fdd07b0af7809935bba0c1f1ca14e (patch)
tree7b737082aebb400a982bf508d3ac2b28a60f0a09 /vcl/unx/gtk
parent171b188e41360e9e87043a861beeaff002a5d53d (diff)
Fixed a crash on non-Unity WM.
Change-Id: Ia8f82024e56ad83c8979d60df3c94e8209fe2552
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();
}