diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-05-14 00:35:21 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-05-14 09:02:14 +0200 |
commit | 11c4cc15fdd491e15ffd4e7d9fb5d4082898f926 (patch) | |
tree | 7e52b252bbb1fda1b79f3aa4de19bf790f38f42c /cui | |
parent | b82c9439287f58a02a2b42d737fcf110fbfb1244 (diff) |
fix gdi resource leak with unreleased virtual device
(copycat Markus https://cgit.freedesktop.org/libreoffice/core/commit/?id=289711c2a469bfbe06aef3b3870b65f9c788f56d)
Change-Id: I3974609559dd44257d7c3e9e9544348d622953f6
Reviewed-on: https://gerrit.libreoffice.org/37586
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optchart.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx index 9471cb6f59d5..c8b8865d5c90 100644 --- a/cui/source/options/optchart.cxx +++ b/cui/source/options/optchart.cxx @@ -43,7 +43,7 @@ void SvxDefaultColorOptPage::InsertColorEntry(const XColorEntry& rEntry, sal_Int const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); Size aImageSize = rStyleSettings.GetListBoxPreviewDefaultPixelSize(); - VclPtr<VirtualDevice> xDevice = VclPtr<VirtualDevice>::Create(); + ScopedVclPtrInstance<VirtualDevice> xDevice; xDevice->SetOutputSize(aImageSize); const ::tools::Rectangle aRect(Point(0, 0), aImageSize); xDevice->SetFillColor(rColor); |