From c8fb57af72555dd72c969fe63d49e4843bb518ee Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 29 Sep 2012 19:55:18 +0000 Subject: Fixed memory leaks in cWindow and cProtocolRecognizer git-svn-id: http://mc-server.googlecode.com/svn/trunk@910 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/UI/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/UI') diff --git a/source/UI/Window.cpp b/source/UI/Window.cpp index 2f9dcb7a9..0c955ba57 100644 --- a/source/UI/Window.cpp +++ b/source/UI/Window.cpp @@ -41,6 +41,11 @@ cWindow::cWindow(cWindow::WindowType a_WindowType, const AString & a_WindowTitle cWindow::~cWindow() { + for (cSlotAreas::iterator itr = m_SlotAreas.begin(), end = m_SlotAreas.end(); itr != end; ++itr) + { + delete *itr; + } + m_SlotAreas.clear(); } -- cgit v1.2.3