summaryrefslogtreecommitdiffstats
path: root/source/UI
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 21:55:18 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-29 21:55:18 +0200
commitc8fb57af72555dd72c969fe63d49e4843bb518ee (patch)
tree5bef0ec24f73fcc51418266c279ae9384f4dbf29 /source/UI
parentSocketThread: clients aren't double-removed anymore. (diff)
downloadcuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar.gz
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar.bz2
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar.lz
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar.xz
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.tar.zst
cuberite-c8fb57af72555dd72c969fe63d49e4843bb518ee.zip
Diffstat (limited to '')
-rw-r--r--source/UI/Window.cpp5
1 files changed, 5 insertions, 0 deletions
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();
}