summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitc97f245c597ebe8f488e72c435960dbee9bf66c6 (patch)
tree472aa07dfc05d06f8732e5fc24c7960a07d10494 /src/gui/widgets/browserbox_unittest.cc
parentc2a7004213529c403faeb6fdcc374699aa2f53b5 (diff)
downloadmv-c97f245c597ebe8f488e72c435960dbee9bf66c6.tar.gz
mv-c97f245c597ebe8f488e72c435960dbee9bf66c6.tar.bz2
mv-c97f245c597ebe8f488e72c435960dbee9bf66c6.tar.xz
mv-c97f245c597ebe8f488e72c435960dbee9bf66c6.zip
fix Client creation in unit tests.
Diffstat (limited to 'src/gui/widgets/browserbox_unittest.cc')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc
index 30ec6d6dd..1c38d735f 100644
--- a/src/gui/widgets/browserbox_unittest.cc
+++ b/src/gui/widgets/browserbox_unittest.cc
@@ -46,7 +46,7 @@ TEST(browserbox, test1)
PHYSFS_init("manaplus");
dirSeparator = "/";
Client::Options options;
- Client client(options);
+ client = new Client(options);
logger = new Logger();
imageHelper = new SDLImageHelper();
@@ -148,4 +148,7 @@ TEST(browserbox, test1)
box->addRow(row);
row = "##1%%2";
box->addRow(row);
+
+ delete client;
+ client = nullptr;
}