Kaydet (Commit) fc723fd8 authored tarafından Noel Grandin's avatar Noel Grandin

tdf#22919 crash on insert picture from the gallery

regression from commit
    commit 1b7bcaa7
    use unique_ptr in svx

Change-Id: Ie3ced1f13ae3d35205174a02d6cbc2c19a171871
Reviewed-on: https://gerrit.libreoffice.org/67498
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6682a47d
......@@ -1081,9 +1081,9 @@ void GalleryBrowser2::DispatchAdd(
pInfo->Arguments = aArgs;
pInfo->Dispatch = xDispatch;
if ( !Application::PostUserEvent(
if ( Application::PostUserEvent(
LINK( nullptr, GalleryBrowser2, AsyncDispatch_Impl), pInfo.get() ) )
pInfo.reset();
pInfo.release();
}
void GalleryBrowser2::Execute(const OString &rIdent)
......
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