Core/DBLayer:

- Fix memory leak introduced in previous rev
- Fix linux compile, thanks to Playon for reporting

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-09-24 22:36:35 +02:00
parent 3c6dc32030
commit e3bf89b6f7
2 changed files with 7 additions and 1 deletions

View File

@@ -44,6 +44,12 @@ m_rowPosition(0)
if (!m_res)
return;
if (m_stmt->bind_result_done)
{
delete[] m_stmt->bind->length;
delete[] m_stmt->bind->is_null;
}
m_rBind = new MYSQL_BIND[m_fieldCount];
m_isNull = new my_bool[m_fieldCount];
m_length = new unsigned long[m_fieldCount];