diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-19 19:56:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-19 19:56:45 +0300 |
commit | 05d7793aa71a600d76d169ca80744768b277c17b (patch) | |
tree | e88ffc8e9fc0b0bc223bf7858e9b508be302521d /src | |
parent | 8eb694f537eafa137aaee7111e4971f75358164b (diff) | |
download | ManaVerse-05d7793aa71a600d76d169ca80744768b277c17b.tar.gz ManaVerse-05d7793aa71a600d76d169ca80744768b277c17b.tar.bz2 ManaVerse-05d7793aa71a600d76d169ca80744768b277c17b.tar.xz ManaVerse-05d7793aa71a600d76d169ca80744768b277c17b.zip |
Fix memory leaks in equipment window.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 4 |
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) |