diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-02-11 11:54:17 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-02-11 14:09:47 +0100 |
commit | 379ab849b415d61c542fc5ebd613e94052df4afb (patch) | |
tree | a88588705da72aef7a7ed87a809070d23c8acb9d /svx | |
parent | 0d1253c2328106a443d16b6c8e96347de33e2ace (diff) |
tdf#22919 crash on insert picture as background from the gallery
regression from commit
commit 1b7bcaa714f0af45c6a9660d1f0940cb7931ba0f use unique_ptr in svx
Follow-up from fc723fd872d5ffa52551f570b64c2b924d1cc97e
Change-Id: I034583e848c6b030e77ed43893c1c7db44280add
Reviewed-on: https://gerrit.libreoffice.org/67681
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 98d3b14dfbe8..b671bb343e01 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -219,9 +219,9 @@ void GalleryThemePopup::Execute( pInfo->Arguments = rArguments; pInfo->Dispatch = rCmdInfo.Dispatch; - if ( !Application::PostUserEvent( + if ( Application::PostUserEvent( LINK( nullptr, GalleryBrowser2, AsyncDispatch_Impl), pInfo.get() ) ) - pInfo.reset(); + pInfo.release(); } } |