summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-19 19:56:45 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-19 19:56:45 +0300
commit05d7793aa71a600d76d169ca80744768b277c17b (patch)
treee88ffc8e9fc0b0bc223bf7858e9b508be302521d /src
parent8eb694f537eafa137aaee7111e4971f75358164b (diff)
downloadplus-05d7793aa71a600d76d169ca80744768b277c17b.tar.gz
plus-05d7793aa71a600d76d169ca80744768b277c17b.tar.bz2
plus-05d7793aa71a600d76d169ca80744768b277c17b.tar.xz
plus-05d7793aa71a600d76d169ca80744768b277c17b.zip
Fix memory leaks in equipment window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/equipmentwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index eab0561ee..67ec78e49 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -45,6 +45,7 @@
#include "resources/iteminfo.h"
#include "resources/resourcemanager.h"
+#include "utils/dtor.h"
#include "utils/gettext.h"
#include "utils/stringutils.h"
@@ -111,6 +112,8 @@ EquipmentWindow::~EquipmentWindow()
delete mEquipment;
mEquipment = 0;
}
+ delete_all(mBoxes);
+ mBoxes.clear();
}
void EquipmentWindow::draw(gcn::Graphics *graphics)
@@ -353,6 +356,7 @@ void EquipmentWindow::fillBoxes()
else if (xmlStrEqual(node->name, BAD_CAST "slot"))
loadSlot(node);
}
+ delete doc;
}
void EquipmentWindow::loadWindow(xmlNodePtr windowNode)