summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 13:23:22 +0200
committerAndras Timar <andras.timar@collabora.com>2021-05-16 23:47:23 +0200
commitb87b4d5af52b574ad840d19172643fd336e2b3e3 (patch)
treea8f0fa91a5072abc2bb1cbd9db36ed27e5150557 /chart2
parent690e841b4b1d0d6394f42670bc6293984ba689bc (diff)
fix some VirtualDevice leaks
Change-Id: I645543fa27ca8b75b36ed7798f0af7b81fd09f49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115488 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/DataBrowser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx
index eabbdd42ace0..a075e5dc30af 100644
--- a/chart2/source/controller/dialogs/DataBrowser.cxx
+++ b/chart2/source/controller/dialogs/DataBrowser.cxx
@@ -302,7 +302,7 @@ void SeriesHeader::SetPos()
aSize.setWidth(m_nWidth);
m_spColorBar->set_size_request(aSize.Width(), aSize.Height());
- auto xVirDev(m_spColorBar->create_virtual_device());
+ ScopedVclPtr<VirtualDevice> xVirDev(m_spColorBar->create_virtual_device());
xVirDev->SetOutputSizePixel(aSize);
xVirDev->SetFillColor(m_aColor);
xVirDev->SetLineColor(m_aColor);