[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed May 6 20:32:44 UTC 2020


 svx/source/dialog/docrecovery.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 40bc11d4d6232c7acb94a3ae9efb5827f39eb64e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed May 6 20:17:28 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed May 6 22:32:10 2020 +0200

    tdf#131956 dispose progressbar when its target is destroyed
    
    Change-Id: Id54ac3a0ebfd360e4107583af7fb978aa69d3288
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93590
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index b5c35bef6271..f8f7c61fc2d1 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -586,6 +586,9 @@ SaveProgressDialog::SaveProgressDialog(weld::Window* pParent, RecoveryCore* pCor
 
 SaveProgressDialog::~SaveProgressDialog()
 {
+    css::uno::Reference<css::lang::XComponent> xComp(m_xProgress, css::uno::UNO_QUERY);
+    if (xComp)
+        xComp->dispose();
 }
 
 short SaveProgressDialog::run()
@@ -685,6 +688,9 @@ RecoveryDialog::RecoveryDialog(weld::Window* pParent, RecoveryCore* pCore)
 
 RecoveryDialog::~RecoveryDialog()
 {
+    css::uno::Reference<css::lang::XComponent> xComp(m_xProgress, css::uno::UNO_QUERY);
+    if (xComp)
+        xComp->dispose();
 }
 
 short RecoveryDialog::execute()


More information about the Libreoffice-commits mailing list