From c97f245c597ebe8f488e72c435960dbee9bf66c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 22:08:12 +0300 Subject: fix Client creation in unit tests. --- src/gui/widgets/browserbox_unittest.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui') 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; } -- cgit v1.2.3-70-g09d2