Core/DB Layer: Fix a memory leak. Author: raczman (yes, you read correctly)
This commit is contained in:
@@ -201,6 +201,8 @@ m_bind(NULL)
|
|||||||
MySQLPreparedStatement::~MySQLPreparedStatement()
|
MySQLPreparedStatement::~MySQLPreparedStatement()
|
||||||
{
|
{
|
||||||
ClearParameters();
|
ClearParameters();
|
||||||
|
delete[] m_Mstmt->bind->length;
|
||||||
|
delete[] m_Mstmt->bind->is_null;
|
||||||
mysql_stmt_close(m_Mstmt);
|
mysql_stmt_close(m_Mstmt);
|
||||||
delete[] m_bind;
|
delete[] m_bind;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user