From 820e64f96615f46ac97762357d0369615967dbdb Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 21 Oct 2014 14:03:05 +0200 Subject: connectivity: firebird: fix temp directory leak Dispose the dbaccess document, and recursively delete the temp directory in Connection::dispose(). Change-Id: Id283289e44b8ca09b88da19920da7f27b551aa7e --- dbaccess/qa/unit/firebird.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dbaccess/qa') diff --git a/dbaccess/qa/unit/firebird.cxx b/dbaccess/qa/unit/firebird.cxx index 61c2a3c81500..424c0cdccf58 100644 --- a/dbaccess/qa/unit/firebird.cxx +++ b/dbaccess/qa/unit/firebird.cxx @@ -54,6 +54,8 @@ void FirebirdTest::testEmptyDBConnection() getDocumentForFileName("firebird_empty.odb"); getConnectionForDocument(xDocument); + + closeDocument(uno::Reference(xDocument, uno::UNO_QUERY)); } /** @@ -93,6 +95,8 @@ void FirebirdTest::testIntegerDatabase() xRow->getString(xColumnLocate->findColumn("_VARCHAR"))); CPPUNIT_ASSERT(!xResultSet->next()); // Should only be one row + + closeDocument(uno::Reference(xDocument, uno::UNO_QUERY)); } CPPUNIT_TEST_SUITE_REGISTRATION(FirebirdTest); -- cgit