Kaydet (Commit) 65a82fd7 authored tarafından Julien Nabet's avatar Julien Nabet

Fix leak in smEditWindow (starmath)

Change-Id: I7eb2af795d4b7d3619fe78ae16ea5796e5943f2c
Reviewed-on: https://gerrit.libreoffice.org/43221Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 4d31f2e1
......@@ -28,6 +28,7 @@
#include <editeng/editview.hxx>
#include <editeng/editeng.hxx>
#include <editeng/editstat.hxx>
#include <o3tl/make_unique.hxx>
#include <sfx2/dispatch.hxx>
#include <svl/stritem.hxx>
#include <sfx2/viewfrm.hxx>
......@@ -961,9 +962,10 @@ void SmEditWindow::Flush()
SmViewShell *pViewSh = rCmdBox.GetView();
if (pViewSh)
{
std::unique_ptr<SfxStringItem> pTextToFlush = o3tl::make_unique<SfxStringItem>(SID_TEXT, GetText());
pViewSh->GetViewFrame()->GetDispatcher()->ExecuteList(
SID_TEXT, SfxCallMode::RECORD,
{ new SfxStringItem(SID_TEXT, GetText()) });
{ pTextToFlush.get() });
}
}
if (aCursorMoveIdle.IsActive())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment