test/fakesockettest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 45a7dccbf894e9b80c7af5a2e9d5649e36885128 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Sat Sep 21 22:21:30 2019 -0400 Commit: Ashod Nakashian <ashnak...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits