diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-01-18 16:10:51 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-01-18 16:10:51 +0000 |
commit | 4fd3a500ee6631dd7418e1ffdb3d675139c6141d (patch) | |
tree | 7a102691d3f33ccf7f47c7c224885af1c44225b2 /connectivity/source | |
parent | 04b5d8243dff7015bbafa0c8f517ef7116623e61 (diff) |
discovered during #96445#: connection needs to free the DBC handle (saves about 15K per connection)
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/odbc/OConnection.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbc/OConnection.cxx b/connectivity/source/drivers/odbc/OConnection.cxx index a6183972b41a..d61f46de532b 100644 --- a/connectivity/source/drivers/odbc/OConnection.cxx +++ b/connectivity/source/drivers/odbc/OConnection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: OConnection.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: oj $ $Date: 2001-11-23 15:04:36 $ + * last change: $Author: fs $ $Date: 2002-01-18 17:10:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -130,6 +130,11 @@ OConnection::~OConnection() { if(!isClosed( )) close(); + + if ( SQL_NULL_HANDLE != m_aConnectionHandle ) + N3SQLFreeHandle( SQL_HANDLE_DBC, m_aConnectionHandle ); + m_aConnectionHandle = SQL_NULL_HANDLE; + m_pDriver->release(); m_pDriver = NULL; ModuleContext::ReleaseRef(); |