starmath/inc/dialog.hxx | 2 +- svx/source/svdraw/svdhdl.cxx | 2 +- test/source/screenshot_test.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 99c2cc067376a2a0ed5ce33a1a2b97e7c2453226 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Feb 21 19:28:03 2026 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Feb 21 19:58:29 2026 +0100 fix assorted VirtualDevice GDI handle leaks Similar to commit e9392c0c86fcf373e00ede92f8ceeee2c7efd233 (fix VirtualDevice GDI handle leaks across IconView callers, 2026-02-21). Change-Id: I5d0566a2d6c7285c6efde5560f13c1efd22cdc55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199942 Reviewed-by: Andras Timar <[email protected]> Tested-by: Andras Timar <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199950 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index 21475b5e3651..df7f36320863 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -1172,7 +1172,7 @@ void SdrHdlColor::CreateB2dIAObject() Bitmap SdrHdlColor::CreateColorDropper(Color aCol) { // get the Bitmap - VclPtr<VirtualDevice> pWrite(VclPtr<VirtualDevice>::Create()); + ScopedVclPtrInstance<VirtualDevice> pWrite; pWrite->SetOutputSizePixel(m_aMarkerSize); pWrite->SetBackground(aCol); pWrite->Erase(); diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index 6acec5c04eb1..cedc7ab1d2e0 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -124,7 +124,7 @@ void ScreenshotTest::saveScreenshot(VclAbstractDialog const & rDialog) void ScreenshotTest::saveScreenshot(weld::Window& rDialog) { - VclPtr<VirtualDevice> xDialogSurface(rDialog.screenshot()); + ScopedVclPtr<VirtualDevice> xDialogSurface(rDialog.screenshot()); const Bitmap aScreenshot(xDialogSurface->GetBitmap(Point(), xDialogSurface->GetOutputSizePixel())); if (!aScreenshot.IsEmpty()) commit 566ae8a3b917a492bdc4b55c8ee5f5cf6d02ae78 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Feb 21 18:37:35 2026 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Feb 21 19:58:18 2026 +0100 fix VirtualDevice GDI handle leaks in SmSymDefineDialog Similar to commit e9392c0c86fcf373e00ede92f8ceeee2c7efd233 (fix VirtualDevice GDI handle leaks across IconView callers, 2026-02-21). Change-Id: Ie4f2ea0ca58a435300c2611f14474f9670945489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199937 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Andras Timar <[email protected]> (cherry picked from commit 2087252b45eefd4bfe81fd71ec59f106a26d48a6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199947 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index 3145b46ed204..4948accfe9d5 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -410,7 +410,7 @@ public: class SmSymDefineDialog final : public weld::GenericDialogController { - VclPtr<VirtualDevice> m_xVirDev; + ScopedVclPtr<VirtualDevice> m_xVirDev; SmSymbolManager m_aSymbolMgrCopy; SmSymbolManager& m_rSymbolMgr; SmShowChar m_aOldSymbolDisplay;
