tdf#103452: add missing xPopupMenu.disposeAndClear();

See https://bugs.documentfoundation.org/attachment.cgi?id=128226

Change-Id: If6641531b96f33b2864f69bd4195c92548fce148
Reviewed-on: https://gerrit.libreoffice.org/30234
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2016-10-24 21:53:07 +02:00
parent 6677759c29
commit 168eb0bfd3

View File

@@ -369,6 +369,7 @@ void SmEditWindow::Command(const CommandEvent& rCEvt)
xPopupMenu->SetSelectHdl(LINK(this, SmEditWindow, MenuSelectHdl)); xPopupMenu->SetSelectHdl(LINK(this, SmEditWindow, MenuSelectHdl));
xPopupMenu->Execute( this, aPoint ); xPopupMenu->Execute( this, aPoint );
xPopupMenu.disposeAndClear();
bForwardEvt = false; bForwardEvt = false;
} }
else if (rCEvt.GetCommand() == CommandEventId::Wheel) else if (rCEvt.GetCommand() == CommandEventId::Wheel)