From b945d01ee586f31bca6ccef4cf067ce4516c0c2b Mon Sep 17 00:00:00 2001 From: treeston Date: Thu, 14 Jan 2016 20:51:35 +0100 Subject: Instance boundary follow-up: - Stop tools from complaining about leaks. - Also, list -> vector. - Fix an ambiguous constructor warning. - Fix a bug with Gormok and Sindragosa (Fixes #16280). --- src/server/game/Instances/InstanceScript.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/game/Instances/InstanceScript.cpp') diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index eb6d9a187d6..2422ea1c533 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -30,6 +30,12 @@ #include "WorldSession.h" #include "Opcodes.h" +BossBoundaryData::~BossBoundaryData() +{ + for (const_iterator it = begin(); it != end(); ++it) + delete it->boundary; +} + void InstanceScript::SaveToDB() { std::string data = GetSaveData(); -- cgit v1.2.3