From 29e0ac537775657f4d358ef866b0da285baf8bfe Mon Sep 17 00:00:00 2001 From: Anubisss Date: Wed, 30 Dec 2009 17:35:49 +0100 Subject: Fix a memory leak. --HG-- branch : trunk --- src/game/Channel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp index fe6af918a79..40c29c8c0b5 100644 --- a/src/game/Channel.cpp +++ b/src/game/Channel.cpp @@ -64,6 +64,8 @@ Channel::Channel(const std::string& name, uint32 channel_id, uint32 Team) m_password = fields[4].GetString(); const char* db_BannedList = fields[5].GetString(); + delete result; + m_IsSaved = true; if (db_BannedList) -- cgit v1.2.3