summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:07 +0300
commit6f23241ba9d7d908534dade0e03041486a970ddc (patch)
tree69d25d1d9f7d6f78d80da60edd4a48f7c8dc85a2 /src/test
parentbfa44d6b007ca2e3ffabafda5beadbf102a6efdc (diff)
downloadmv-6f23241ba9d7d908534dade0e03041486a970ddc.tar.gz
mv-6f23241ba9d7d908534dade0e03041486a970ddc.tar.bz2
mv-6f23241ba9d7d908534dade0e03041486a970ddc.tar.xz
mv-6f23241ba9d7d908534dade0e03041486a970ddc.zip
Other fixes after Coverity checks.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testmain.cpp6
-rw-r--r--src/test/testmain.h2
2 files changed, 8 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");
diff --git a/src/test/testmain.h b/src/test/testmain.h
index f2913fe30..5e9a94f0d 100644
--- a/src/test/testmain.h
+++ b/src/test/testmain.h
@@ -36,6 +36,8 @@ class TestMain
A_DELETE_COPY(TestMain)
+ ~TestMain();
+
int exec(const bool testAudio = true);
static int readValue(const int ver, int def);