From 846fcc03b89a7131f565de95396757c8e0da1dfd Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 2 Sep 2021 10:45:50 +0200 Subject: Use utl::TempFile::EnableKillingFile Helps keep temp directory clean also on exceptions Change-Id: I81c17d90d6905653db946e68faf2a7f59c17da15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121466 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- connectivity/source/drivers/firebird/Connection.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 9e574b1f8cca..cc4ee39ff155 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -915,11 +915,7 @@ void Connection::disposing() cppu::WeakComponentImplHelperBase::disposing(); - if (m_pDatabaseFileDir) - { - ::utl::removeTree(m_pDatabaseFileDir->GetURL()); - m_pDatabaseFileDir.reset(); - } + m_pDatabaseFileDir.reset(); } void Connection::disposeStatements() -- cgit