[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4-0' - test/test.cpp

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 10 12:37:52 UTC 2019


 test/test.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 16b1f906d0691b311feb9ede1df1a9ba399510dd
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat Sep 21 14:37:03 2019 -0400
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Oct 10 14:37:34 2019 +0200

    wsd: test: free test memory
    
    Change-Id: If196233e7d8256c4e9a6d5f7ce257e876d748857
    Reviewed-on: https://gerrit.libreoffice.org/79333
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/test/test.cpp b/test/test.cpp
index f09e1f855..e7ed5bfcc 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -89,7 +89,8 @@ bool runClientTests(bool standalone, bool verbose)
     controller.addListener(&result);
     CPPUNIT_NS::BriefTestProgressListener progress;
     controller.addListener(&progress);
-    controller.addListener(new CPPUNIT_NS::TextTestProgressListener());
+    std::unique_ptr<CPPUNIT_NS::TextTestProgressListener> pListener(new CPPUNIT_NS::TextTestProgressListener());
+    controller.addListener(pListener.get());
 
     CPPUNIT_NS::Test* testRegistry = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
 


More information about the Libreoffice-commits mailing list