diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-05 16:03:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-05 16:03:10 +0100 |
commit | 2f8580e00830dd1b2fd0a8f89e62d2c822fe9670 (patch) | |
tree | 656cc94b18a7b5f982f4e802808d4eb1b8ccf7c1 /connectivity/source | |
parent | a5a1e65efe5fd41974613b488effd9eae6e9ef2f (diff) |
delete/delete[] mismatch, thanks to Terrence Enger
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OResultSet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbcbase/OResultSet.cxx b/connectivity/source/drivers/odbcbase/OResultSet.cxx index e588085e2c38..3c13671d22cb 100644 --- a/connectivity/source/drivers/odbcbase/OResultSet.cxx +++ b/connectivity/source/drivers/odbcbase/OResultSet.cxx @@ -1381,7 +1381,7 @@ void OResultSet::setFetchSize(sal_Int32 _par0) if ( _par0 > 0 ) { N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_ARRAY_SIZE,(SQLPOINTER)(sal_IntPtr)_par0,SQL_IS_UINTEGER); - delete m_pRowStatusArray; + delete [] m_pRowStatusArray; m_pRowStatusArray = new SQLUSMALLINT[_par0]; N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_STATUS_PTR,m_pRowStatusArray,SQL_IS_POINTER); |