summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-15 22:11:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-15 22:11:37 +0300
commitd87cc140a5e46d417d670c470c3ceaf54c2dfbf5 (patch)
tree89de4ead3034f6f6cd4bbc15e4c6df13ff841c37
parentec7d24a8f2d7d528bc200a62f7242e6817b9e1ed (diff)
downloadplus-d87cc140a5e46d417d670c470c3ceaf54c2dfbf5.tar.gz
plus-d87cc140a5e46d417d670c470c3ceaf54c2dfbf5.tar.bz2
plus-d87cc140a5e46d417d670c470c3ceaf54c2dfbf5.tar.xz
plus-d87cc140a5e46d417d670c470c3ceaf54c2dfbf5.zip
Fix leak in ItemAmountWindow.
-rw-r--r--src/gui/windows/itemamountwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index e41e276fc..506044b20 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -51,6 +51,7 @@
#include "resources/item/item.h"
+#include "utils/delete2.h"
#include "utils/gettext.h"
#ifndef USE_SDL2
@@ -309,6 +310,7 @@ void ItemAmountWindow::postInit()
ItemAmountWindow::~ItemAmountWindow()
{
+ delete2(mItemsModal);
}
// Show ItemTooltip