chart2/source/controller/dialogs/ChartTypeDialogController.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c16169b242736c30667b1e2fa72dc4006fb6edc5 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Feb 21 17:19:13 2026 +0500 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Feb 27 12:03:00 2026 +0100 fix VirtualDevice GDI handle leaks in ChartTypeDialogController Similar to commit e9392c0c86fcf373e00ede92f8ceeee2c7efd233 (fix VirtualDevice GDI handle leaks across IconView callers, 2026-02-21). Change-Id: Ib4f9cff40d62fe1f2aeb0bafba373f3856ccd41c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199929 Reviewed-by: Andras Timar <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200593 Reviewed-by: Caolán McNamara <[email protected]> diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx index 91b31b707af1..3c070f8b86cc 100644 --- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx +++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx @@ -399,7 +399,7 @@ void ChartTypeDialogController::setTemplateProperties( const uno::Reference< bea Bitmap ChartTypeDialogController::getPreviewBitmap(Image pImage) { Bitmap aPreviewBitmap = pImage.GetBitmap(); - VclPtr<VirtualDevice> pVDev = VclPtr<VirtualDevice>::Create(); + ScopedVclPtr<VirtualDevice> pVDev(VclPtr<VirtualDevice>::Create()); if (pVDev->GetDPIScaleFactor() > 1) aPreviewBitmap.Scale(pVDev->GetDPIScaleFactor(), pVDev->GetDPIScaleFactor()); return aPreviewBitmap;
