summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-06-28 16:50:21 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-06-28 16:56:23 +0200
commitae6551b43d6cde10edb449cca6d2caa8fa428b20 (patch)
treea9dafc6e2499af00f1933d139abdf8f98ee0a99e /connectivity/source
parent814818c3451fa32900c011278e2e5b62e3518eb0 (diff)
firebird driver, abandon ref to about to be disposed embedded storage.
Change-Id: I6bfce155151b79cd0a1707744e79298b45d8752b
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index 69b2377b1af4..1ad4f445cca4 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -679,6 +679,9 @@ void SAL_CALL Connection::documentEventOccured( const DocumentEvent& _Event )
void SAL_CALL Connection::disposing(const EventObject& /*rSource*/)
throw (RuntimeException, std::exception)
{
+ MutexGuard aGuard( m_aMutex );
+
+ m_xEmbeddedStorage.clear();
}
void Connection::buildTypeInfo() throw( SQLException)