[Libreoffice-commits] online.git: test/fakesockettest.cpp
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 22 18:25:45 UTC 2019
test/fakesockettest.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 45a7dccbf894e9b80c7af5a2e9d5649e36885128
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat Sep 21 22:21:30 2019 -0400
Commit: Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Sun Sep 22 20:25:28 2019 +0200
wsd: test: don't leak the test listener
Change-Id: Ibc658ff68696f865071a4ef0c78e1886d8bf0d2c
Reviewed-on: https://gerrit.libreoffice.org/79353
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/test/fakesockettest.cpp b/test/fakesockettest.cpp
index c3243570f..49fd97754 100644
--- a/test/fakesockettest.cpp
+++ b/test/fakesockettest.cpp
@@ -287,7 +287,8 @@ int main(int, char**)
controller.addListener(&result);
CPPUNIT_NS::BriefTestProgressListener progress;
controller.addListener(&progress);
- controller.addListener(new CPPUNIT_NS::TextTestProgressListener());
+ CPPUNIT_NS::TextTestProgressListener listener;
+ controller.addListener(&listener);
CPPUNIT_NS::Test* testRegistry = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
More information about the Libreoffice-commits
mailing list