mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Fix a mem leak in ObjectMgr::LoadWaypointScripts(), http://pastebin.com/f701c1e11
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user