From 8a78102a1cd7965adee169c22cede48e37c96dc3 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 16 Jan 2010 00:37:56 +0100 Subject: Fix a mem leak in ObjectMgr::LoadWaypointScripts(), http://pastebin.com/f701c1e11 --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/ObjectMgr.cpp') 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; } } -- cgit v1.2.3