summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-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)