summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxmenu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt/vclxmenu.cxx')
-rw-r--r--toolkit/source/awt/vclxmenu.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx
index cbeb1ef7f810..3eda26c81236 100644
--- a/toolkit/source/awt/vclxmenu.cxx
+++ b/toolkit/source/awt/vclxmenu.cxx
@@ -57,6 +57,7 @@ VCLXMenu::~VCLXMenu()
maPopupMenuRefs.clear();
if ( mpMenu )
{
+ SolarMutexGuard g;
mpMenu->RemoveEventListener( LINK( this, VCLXMenu, MenuEventListener ) );
mpMenu.disposeAndClear();
}