aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2010-01-20 21:15:42 +0100
committerAnubisss <none@none>2010-01-20 21:15:42 +0100
commit6855787a8376242120ef626f4fbbb80fc7b0baab (patch)
treecca65ca350b737b39f4cfad9f6db724e1e63165f /src
parent721c9262291833868b6c478410c23f732eca4d4b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/game/AddonMgr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/AddonMgr.cpp b/src/game/AddonMgr.cpp
index da6603e883e..6aad7ef3c0a 100644
--- a/src/game/AddonMgr.cpp
+++ b/src/game/AddonMgr.cpp
@@ -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)