diff options
Diffstat (limited to 'connectivity/source/cpool/ZPooledConnection.cxx')
-rw-r--r-- | connectivity/source/cpool/ZPooledConnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/cpool/ZPooledConnection.cxx b/connectivity/source/cpool/ZPooledConnection.cxx index 8ee7adf6d2..64293811d5 100644 --- a/connectivity/source/cpool/ZPooledConnection.cxx +++ b/connectivity/source/cpool/ZPooledConnection.cxx @@ -64,14 +64,14 @@ void SAL_CALL OPooledConnection::disposing(void) MutexGuard aGuard(m_aMutex); if (m_xComponent.is()) m_xComponent->removeEventListener(this); - m_xComponent = NULL; +m_xComponent.clear(); ::comphelper::disposeComponent(m_xRealConnection); } // ----------------------------------------------------------------------------- // XEventListener void SAL_CALL OPooledConnection::disposing( const EventObject& /*Source*/ ) throw (RuntimeException) { - m_xComponent = NULL; +m_xComponent.clear(); } // ----------------------------------------------------------------------------- //XPooledConnection |