diff options
author | Anubisss <none@none> | 2010-01-16 00:37:56 +0100 |
---|---|---|
committer | Anubisss <none@none> | 2010-01-16 00:37:56 +0100 |
commit | 8a78102a1cd7965adee169c22cede48e37c96dc3 (patch) | |
tree | 1e679bff0381b1cade4400b2b3ca634c2dae9c02 /src | |
parent | 26e11448dddc870c848f26462339ffdffd19c078 (diff) |
Fix a mem leak in ObjectMgr::LoadWaypointScripts(), http://pastebin.com/f701c1e11
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ObjectMgr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 0611329ce12..22f70ca007c 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -4697,6 +4697,7 @@ void ObjectMgr::LoadWaypointScripts() QueryResult *query = WorldDatabase.PQuery("SELECT * FROM waypoint_scripts WHERE id = %u", itr->first); if(!query || !query->GetRowCount()) sLog.outErrorDb("There is no waypoint which links to the waypoint script %u", itr->first); + delete query; } } |