Core/DBLayer: Fix a memory leak in prepared statement parameter/result binds. Original author: raczman

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-09-13 17:07:27 +02:00
parent 6d0a031a77
commit 88f378e7ae
3 changed files with 7 additions and 6 deletions

View File

@@ -176,8 +176,13 @@ void ResultBind::FreeBindBuffer()
void ResultBind::CleanUp()
{
if (m_res)
mysql_free_result(m_res);
FreeBindBuffer();
mysql_stmt_free_result(m_stmt);
delete[] m_rBind;
}
uint8 PreparedResultSet::GetUInt8(uint32 index)