summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-21 14:03:05 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-21 15:08:57 +0200
commit820e64f96615f46ac97762357d0369615967dbdb (patch)
tree928032ba0ccd82beb34bbec5b331fddc543f4179 /dbaccess
parenta2e4d4329bc3913a198c25c428faedef02f36681 (diff)
connectivity: firebird: fix temp directory leak
Dispose the dbaccess document, and recursively delete the temp directory in Connection::dispose(). Change-Id: Id283289e44b8ca09b88da19920da7f27b551aa7e
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/qa/unit/firebird.cxx4
1 files changed, 4 insertions, 0 deletions
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<lang::XComponent>(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<lang::XComponent>(xDocument, uno::UNO_QUERY));
}
CPPUNIT_TEST_SUITE_REGISTRATION(FirebirdTest);