[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source

Maxim Monastirsky momonasmon at gmail.com
Thu May 25 23:59:08 UTC 2017


 sw/source/uibase/app/apphdl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6b921e1c8a4779dfd6f5531842ab89d85aa99a85
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Thu May 25 02:17:06 2017 +0300

    tdf#105002 Don't crash on mail wizard recreation
    
    Change-Id: I8af4753cc654ec475d40223a64afa50a9de332ab
    Reviewed-on: https://gerrit.libreoffice.org/38007
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    (cherry picked from commit ce40f2798f0fa2f8f6e3084e4bbbd50e749c55d6)
    Reviewed-on: https://gerrit.libreoffice.org/38037

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 5e2b80979791..61a9e31b9f08 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -575,6 +575,7 @@ IMPL_LINK_NOARG( SwMailMergeWizardExecutor, EndDialogHdl, Dialog&, void )
                 xMMConfig->SetTargetView(nullptr);
 
                 // destroy wizard asynchronously
+                m_pWizardToDestroyInCallback = m_pWizard;
                 Application::PostUserEvent(
                     LINK( this, SwMailMergeWizardExecutor, CloseFrameHdl ), m_pWizard );
 
@@ -668,6 +669,7 @@ IMPL_LINK_NOARG(SwMailMergeWizardExecutor, CloseFrameHdl, void*, void)
         m_pView2Close->GetViewFrame()->DoClose();
         m_pView2Close = nullptr;
     }
+    m_pWizardToDestroyInCallback.disposeAndClear();
 }
 } // namespace
 


More information about the Libreoffice-commits mailing list