summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-06 20:17:28 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-05-08 10:40:02 +0200
commit509c94f1a94d9a2faf835862c400cd78385a2549 (patch)
treec683e73c6ab8f7dca768daafdd68db4ab0c888a5 /svx
parentd8388a729ff199f8fb98df21eff4e253dfd420d2 (diff)
tdf#131956 dispose progressbar when its target is destroyed
Change-Id: Id54ac3a0ebfd360e4107583af7fb978aa69d3288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93533 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/docrecovery.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index 75b9f3b87042..cdefa9972966 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -602,6 +602,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()
@@ -701,6 +704,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()