summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index 42e4ea9bd..c150a8b99 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -45,6 +45,12 @@ TestMain::TestMain() :
+ std::string("/manaplustest.log"));
}
+TestMain::~TestMain()
+{
+ delete log;
+ log = nullptr;
+}
+
void TestMain::initConfig()
{
mConfig.init(Client::getConfigDirectory() + "/test.xml");