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:20:41 +0100
commit1fc5b27a72f00b34a681cd9aa63438119436e7dd (patch)
tree5cb4d7f55b404a445ed0ff6aacaf442abffc9c4e /sw
parenta71ce08da071a205aba15c32ae9c42b4b5e44018 (diff)
tdf#114670 Make sure to dispose the menu
Conflicts: sw/source/uibase/docvw/edtwin.cxx 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/47032 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org> Reviewed-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 e9097d19fc72..0bd2b7d49347 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5280,7 +5280,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;
OUString sMenuName("private:resource/ReadonlyContextMenu");
if (GetView().TryContextMenuInterception(aROPopup.GetMenu(), sMenuName, pMenu, aEvent))
{