[Libreoffice-commits] core.git: framework/qa

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 1 10:58:20 UTC 2021


 framework/qa/cppunit/services.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25a648541a423b794b5827552e03fba1084b3792
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jun 1 11:12:19 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jun 1 12:57:37 2021 +0200

    fix leak in CppunitTest_framework_services
    
    Change-Id: I522e3e9b57668d7a8d1df10f4520045a3a3553dc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116524
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/framework/qa/cppunit/services.cxx b/framework/qa/cppunit/services.cxx
index 93d05ff65ca5..c75ce9f65633 100644
--- a/framework/qa/cppunit/services.cxx
+++ b/framework/qa/cppunit/services.cxx
@@ -94,7 +94,7 @@ CPPUNIT_TEST_FIXTURE(Test, testLoadComponentFromURL)
 
     // Create a default window, so by the time the thread would post a user event, it doesn't need
     // the solar mutex to process a SendMessageW() call on Windows.
-    VclPtrInstance<WorkWindow> xWindow(nullptr, WB_APP | WB_STDWORK);
+    ScopedVclPtrInstance<WorkWindow> xWindow(nullptr, WB_APP | WB_STDWORK);
     // Variable is not used, it holds the default window.
     (void)xWindow;
 


More information about the Libreoffice-commits mailing list