summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-12-23 22:13:55 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-12-24 00:09:51 +0100
commitbaccbd4508a375090f4d95a2dab02c8b5d404ee2 (patch)
treefbac91cc1c8336abc19cd040fb147db808d00a85 /sw
parent7c19c0e2b4862aef7373ec02570fa38b0026039a (diff)
tdf#114670 Make sure to dispose the menu
Change-Id: I30612a0b3cfef7d19ff6a5180db76a8002186bd5 Reviewed-on: https://gerrit.libreoffice.org/47025 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index f5b582994ec7..edb94d575e5d 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5287,7 +5287,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
aEvent.SourceWindow = VCLUnoHelper::GetInterface( this );
aEvent.ExecutePosition.X = aPixPos.X();
aEvent.ExecutePosition.Y = aPixPos.Y();
- VclPtr<Menu> pMenu;
+ ScopedVclPtr<Menu> pMenu;
if (GetView().TryContextMenuInterception(aROPopup.GetMenu(), "private:resource/ReadonlyContextMenu", pMenu, aEvent))
{
if ( pMenu )