diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-09-23 12:35:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-23 14:57:18 +0200 |
commit | 080931eb5c49b8a05d1bf6f9ddc1203b3e75aaa2 (patch) | |
tree | 2ed8ea8061ffa07c45436d0c85f6a1b7ce0ed853 /vcl/quartz | |
parent | 49dd4ecaf846b31cd2e3cbc37c8790216d7e113f (diff) |
loplugin:fragiledestructor (macOS)
Change-Id: I8ac1f67999ccbb6c411359ac6fd4c473dc339d44
Reviewed-on: https://gerrit.libreoffice.org/79398
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index ee6598f7e0b6..710a9eb408ee 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -70,7 +70,7 @@ QuartzSalBitmap::QuartzSalBitmap() QuartzSalBitmap::~QuartzSalBitmap() { - Destroy(); + doDestroy(); } bool QuartzSalBitmap::Create(CGLayerHolder const & rLayerHolder, int nBitmapBits, int nX, int nY, int nWidth, int nHeight, bool bFlipped) @@ -176,6 +176,11 @@ bool QuartzSalBitmap::Create( const css::uno::Reference< css::rendering::XBitmap void QuartzSalBitmap::Destroy() { + doDestroy(); +} + +void QuartzSalBitmap::doDestroy() +{ DestroyContext(); m_pUserBuffer.reset(); } |