summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2000-10-06 11:07:30 +0000
committerFrank Schönheit <fs@openoffice.org>2000-10-06 11:07:30 +0000
commit076b9505d5822d59c1ff646e6abdacd9e7ff3d11 (patch)
tree3ff92cdee9fe705ce4fba5ce1e0d458193a2914c /connectivity
parent5b3959b645e8570f2a14fb8600e60bf3547e11a4 (diff)
releaseBuffer in disposing, not in the dtor
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbc/OResultSet.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx
index fbf4538f6d56..346f2a32e3c4 100644
--- a/connectivity/source/drivers/odbc/OResultSet.cxx
+++ b/connectivity/source/drivers/odbc/OResultSet.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OResultSet.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:14:23 $
+ * last change: $Author: fs $ $Date: 2000-10-06 12:07:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -184,8 +184,6 @@ OResultSet::OResultSet(SQLHANDLE _pStatementHandle ) : OResultSet_BASE(m_aMutex
OResultSet::~OResultSet()
{
delete m_pRowStatusArray;
- if(m_aBindVector.size())
- releaseBuffer();
}
// -------------------------------------------------------------------------
void OResultSet::disposing(void)
@@ -199,6 +197,10 @@ void OResultSet::disposing(void)
N3SQLFreeHandle(SQL_HANDLE_STMT,m_aStatementHandle);
m_aStatementHandle = NULL;
}
+
+ if(m_aBindVector.size())
+ releaseBuffer();
+
m_aStatement = NULL;
m_xMetaData = NULL;
}