diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-12-23 22:13:55 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-12-24 00:09:51 +0100 |
commit | baccbd4508a375090f4d95a2dab02c8b5d404ee2 (patch) | |
tree | fbac91cc1c8336abc19cd040fb147db808d00a85 /sw | |
parent | 7c19c0e2b4862aef7373ec02570fa38b0026039a (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.cxx | 2 |
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 ) |