summaryrefslogtreecommitdiff
path: root/src/unittests/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-30 04:35:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-30 04:35:10 +0300
commit028120afb03b1acee59fad9a2240f8b80c97bc67 (patch)
tree124d53db3ff1780cdda748c309243886d16d680c /src/unittests/gui
parent3bad25f9be2ce5ee41849e2ceab837654b58567d (diff)
downloadplus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.gz
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.bz2
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.xz
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.zip
Fix memory leaks in unit tests.
Diffstat (limited to 'src/unittests/gui')
-rw-r--r--src/unittests/gui/windowmanager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index 6090555ee..6a215d081 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -265,6 +265,7 @@ TEST_CASE("Windows tests", "windowmanager")
mainGraphics->updateScreen();
delete2(dialog);
delete2(being);
+ delete2(map);
}
SECTION("BuyingStoreSellDialog")
{
@@ -512,6 +513,7 @@ TEST_CASE("Windows tests", "windowmanager")
gui->draw();
mainGraphics->updateScreen();
delete2(mailViewWindow);
+ delete(message);
}
SECTION("MailWindow")
{