svx/source/dialog/docrecovery.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 509c94f1a94d9a2faf835862c400cd78385a2549 Author: Caolán McNamara <[email protected]> AuthorDate: Wed May 6 20:17:28 2020 +0100 Commit: Michael Stahl <[email protected]> CommitDate: Fri May 8 10:40:02 2020 +0200 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 <[email protected]> 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() _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
