Fix a mem leak in ObjectMgr::LoadWaypointScripts(), http://pastebin.com/f701c1e11

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-01-16 00:37:56 +01:00
parent 26e11448dd
commit 8a78102a1c

View File

@@ -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;
}
}