From d87cc140a5e46d417d670c470c3ceaf54c2dfbf5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 15 Sep 2016 22:11:37 +0300 Subject: Fix leak in ItemAmountWindow. --- src/gui/windows/itemamountwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2