mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
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`");
|
||||
exit(1);
|
||||
}
|
||||
delete result;
|
||||
|
||||
result = CharacterDatabase.PQuery("SELECT name, crc FROM addons");
|
||||
if(!result)
|
||||
|
||||
Reference in New Issue
Block a user