From 25a648541a423b794b5827552e03fba1084b3792 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Jun 2021 11:12:19 +0200 Subject: 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 --- framework/qa/cppunit/services.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/qa') 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 xWindow(nullptr, WB_APP | WB_STDWORK); + ScopedVclPtrInstance xWindow(nullptr, WB_APP | WB_STDWORK); // Variable is not used, it holds the default window. (void)xWindow; -- cgit