diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-23 18:24:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-23 18:24:49 +0300 |
commit | 37fd6d2434c63f02fb8e67e120fb285f41c6cca0 (patch) | |
tree | ef639fc7fab67266dfc315e53ea2650350579f30 /src/gui/windows | |
parent | ff1b16bbf878e988db40f213901ac2655897647b (diff) | |
download | manaplus-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.gz manaplus-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.bz2 manaplus-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.tar.xz manaplus-37fd6d2434c63f02fb8e67e120fb285f41c6cca0.zip |
Fix memory leak in equipment window.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 1 |
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) { |