[Libreoffice-commits] core.git: include/vcl vcl/source
Noel Grandin
noel at peralex.com
Mon Jun 13 07:01:52 UTC 2016
include/vcl/outdev.hxx | 2 +-
vcl/source/outdev/outdev.cxx | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit de9333d9b6f87d6f6d13e5ddf1fc65b8fef635e8
Author: Noel Grandin <noel at peralex.com>
Date: Mon Jun 13 09:01:07 2016 +0200
loplugin:vclwidgets
Change-Id: I3567c3f9c5fe8374abd81d3f6e9a4a41e6a4c23d
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 7601ac4..4eab9de 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -424,7 +424,7 @@ private:
protected:
OutputDevice();
-protected:
+ virtual ~OutputDevice();
virtual void dispose() override;
public:
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index a1c5f12..4c32c66 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -139,6 +139,11 @@ OutputDevice::OutputDevice() :
mpOutDevData->mpInverseViewTransform = nullptr;
}
+OutputDevice::~OutputDevice()
+{
+ disposeOnce();
+}
+
void OutputDevice::dispose()
{
if ( GetUnoGraphicsList() )
More information about the Libreoffice-commits
mailing list