From 37fd6d2434c63f02fb8e67e120fb285f41c6cca0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 23 Mar 2015 18:24:49 +0300 Subject: Fix memory leak in equipment window. --- src/gui/windows/equipmentwindow.cpp | 1 + 1 file changed, 1 insertion(+) 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 &boxes = (*it)->boxes; delete_all(boxes); boxes.clear(); + delete *it; } if (mImageSet) { -- cgit v1.2.3-70-g09d2