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:
Anubisss
2010-01-20 21:15:42 +01:00
parent 721c926229
commit 6855787a83

View File

@@ -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)