[Libreoffice-commits] core.git: dbaccess/qa
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 25 09:38:40 UTC 2021
dbaccess/qa/extras/macros-test.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 4632f935951584826d18f04939cf6c809fd370cc
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue May 25 10:56:57 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue May 25 11:38:02 2021 +0200
fix leak in CppunitTest_dbaccess_macros_test
Change-Id: I722ea80688f19cc7f5d60cf3fa08f42dc6b35a16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/dbaccess/qa/extras/macros-test.cxx b/dbaccess/qa/extras/macros-test.cxx
index 6e165ac640ff..dee5919c3463 100644
--- a/dbaccess/qa/extras/macros-test.cxx
+++ b/dbaccess/qa/extras/macros-test.cxx
@@ -9,6 +9,7 @@
#include <sal/config.h>
#include <test/unoapi_test.hxx>
+#include <com/sun/star/util/XCloseable.hpp>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -37,7 +38,8 @@ void DBAccessTest::test()
OUString aFileName;
createFileURL(u"testdb.odb", aFileName);
uno::Reference<lang::XComponent> xComponent = loadFromDesktop(aFileName);
- xComponent->dispose();
+ uno::Reference<util::XCloseable> xDocCloseable(xComponent, UNO_QUERY_THROW);
+ xDocCloseable->close(false);
}
CPPUNIT_TEST_SUITE_REGISTRATION(DBAccessTest);
More information about the Libreoffice-commits
mailing list