diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-28 20:22:59 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-10-30 13:33:00 +0100 |
commit | 3b92dc64024a6bd4c750dfdc460e9bacf0408b00 (patch) | |
tree | 4729f9c0fee78962c0077f945b51e27fa0551c75 /vcl | |
parent | 00a0f45b65a7edfbd1918fe9c0ab0c2a5b14c0b0 (diff) |
ofz#26708: Direct-leak
since...
commit cd8dd48bf89d800c012afb04b16281ed8b261de9
Date: Tue Aug 21 16:07:55 2018 +0200
tdf#119282 Area tab, Pattern color change
Change-Id: If0c988f7532786a4089edef39929f924d8e2ec2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104953
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/BitmapTools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index f0c5c522b7de..3f02260478d0 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -987,7 +987,7 @@ void CanvasCairoExtractBitmapData( BitmapEx const & aBmpEx, Bitmap & aBitmap, un aPalette[1] = BitmapColor(aColorPix); Bitmap aBitmap(Size(8, 8), 1, &aPalette); - BitmapWriteAccess* pContent(aBitmap.AcquireWriteAccess()); + BitmapScopedWriteAccess pContent(aBitmap); for(sal_uInt16 a(0); a < 8; a++) { |