diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-17 12:11:26 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 11:35:13 +0100 |
commit | f3ac0f58dbfb9b600df56f8516b31091f4afcf3e (patch) | |
tree | 3ebe78cf0d04919d27a8f1c7bbb7c03d4e5ad0c6 /vcl | |
parent | 149ee09c7aa2e303b625cc6b82b40a8c27613916 (diff) |
explicit delete of another class' VclPtr is not a great plan.
Change-Id: Ie719ed153f2de462ced194fe67b6dd78933b354e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index af18be1f4757..7323c14460d3 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -2532,7 +2532,7 @@ void MenuBar::ImplDestroy( MenuBar* pMenu, bool bDelete ) IMenuBarWindow* pMenuWin = pMenu->getMenuBarWindow(); if (pMenuWin) pMenuWin->KillActivePopup(); - delete pWindow; + pWindow->disposeOnce(); } pMenu->pWindow = NULL; } |