summaryrefslogtreecommitdiff
path: root/vcl/source/window/menu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/menu.cxx')
-rw-r--r--vcl/source/window/menu.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index da7213ec108b..3d6bc1aa84a8 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -171,9 +171,11 @@ Menu::~Menu()
bKilled = true;
- delete pItemList;
+ pItemList->Clear();
delete pLogo;
+ pLogo = nullptr;
delete mpLayoutData;
+ mpLayoutData = nullptr;
// Native-support: destroy SalMenu
ImplSetSalMenu( nullptr );