Fix a memory leak.
--HG-- branch : trunk
This commit is contained in:
@@ -64,6 +64,8 @@ Channel::Channel(const std::string& name, uint32 channel_id, uint32 Team)
|
|||||||
m_password = fields[4].GetString();
|
m_password = fields[4].GetString();
|
||||||
const char* db_BannedList = fields[5].GetString();
|
const char* db_BannedList = fields[5].GetString();
|
||||||
|
|
||||||
|
delete result;
|
||||||
|
|
||||||
m_IsSaved = true;
|
m_IsSaved = true;
|
||||||
|
|
||||||
if (db_BannedList)
|
if (db_BannedList)
|
||||||
|
|||||||
Reference in New Issue
Block a user