Fix a memory leak in AddonMgr::LoadFromDB(). This not leaks _yet_ because that function not used anywhere(if my eyez are right) but in the future can leaks.
--HG-- branch : trunk
This commit is contained in:
@@ -48,6 +48,7 @@ void AddonMgr::LoadFromDB()
|
|||||||
sLog.outError("an error occured while loading the table `addons`");
|
sLog.outError("an error occured while loading the table `addons`");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
delete result;
|
||||||
|
|
||||||
result = CharacterDatabase.PQuery("SELECT name, crc FROM addons");
|
result = CharacterDatabase.PQuery("SELECT name, crc FROM addons");
|
||||||
if(!result)
|
if(!result)
|
||||||
|
|||||||
Reference in New Issue
Block a user