summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-23 18:24:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-23 18:24:49 +0300
commit37fd6d2434c63f02fb8e67e120fb285f41c6cca0 (patch)
treeef639fc7fab67266dfc315e53ea2650350579f30 /src/gui/windows
parentff1b16bbf878e988db40f213901ac2655897647b (diff)
downloadmv-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.gz
mv-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.bz2
mv-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.xz
mv-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.zip
Fix memory leak in equipment window.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/equipmentwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index 3320f9e1e..4d587a2e8 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -161,6 +161,7 @@ EquipmentWindow::~EquipmentWindow()
std::vector<EquipmentBox*> &boxes = (*it)->boxes;
delete_all(boxes);
boxes.clear();
+ delete *it;
}
if (mImageSet)
{