diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-12 13:23:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-12 15:44:12 +0200 |
commit | dad39d0022ed267ede3e8e589854f7eb73e602f3 (patch) | |
tree | 2598a34ff97b9c1f05d5309202afa0e52e6d39f5 /sfx2 | |
parent | 6a6225cea84b43ac0231333afbde89b399984322 (diff) |
fix some VirtualDevice leaks
Change-Id: I645543fa27ca8b75b36ed7798f0af7b81fd09f49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index 3af15ee3f62c..40095a7b8a25 100644 --- a/sfx2/source/dialog/infobar.cxx +++ b/sfx2/source/dialog/infobar.cxx @@ -101,7 +101,7 @@ void SfxInfoBarWindow::SetCloseButtonImage() Size aSize = Image(StockImage::Yes, CLOSEDOC).GetSizePixel(); aSize = Size(aSize.Width() * 1.5, aSize.Height() * 1.5); - VclPtr<VirtualDevice> xDevice(m_xCloseBtn->create_virtual_device()); + ScopedVclPtr<VirtualDevice> xDevice(m_xCloseBtn->create_virtual_device()); xDevice->SetOutputSizePixel(aSize); Point aBtnPos(0, 0); |