summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-12-23 22:13:55 +0200
committerMichael Stahl <mstahl@redhat.com>2018-01-03 17:21:37 +0100
commit612a613a6bad3574f4750b27a3638064963baf14 (patch)
tree265843573527fbd8524587d97514cfd8c8f0eff8 /sw
parentccce3d15fdb28786166f9c96cdc12a185c3c078e (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> (cherry picked from commit baccbd4508a375090f4d95a2dab02c8b5d404ee2) Reviewed-on: https://gerrit.libreoffice.org/47031 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.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 da86a7d49149..bfc5c3dc8585 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 )