diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-30 04:35:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-30 04:35:10 +0300 |
commit | 028120afb03b1acee59fad9a2240f8b80c97bc67 (patch) | |
tree | 124d53db3ff1780cdda748c309243886d16d680c /src/unittests/gui | |
parent | 3bad25f9be2ce5ee41849e2ceab837654b58567d (diff) | |
download | manaverse-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.gz manaverse-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.bz2 manaverse-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.xz manaverse-028120afb03b1acee59fad9a2240f8b80c97bc67.zip |
Fix memory leaks in unit tests.
Diffstat (limited to 'src/unittests/gui')
-rw-r--r-- | src/unittests/gui/windowmanager.cc | 2 |
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") { |