diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-28 20:22:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-29 11:15:52 +0100 |
commit | 6934049abe5581ba543212f07fec8c411122c806 (patch) | |
tree | 400e8c55786fc081aa3faf4a0213a305b4a412cb /vcl | |
parent | bf715f188a511a49104afec6ceec88771639ad3e (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/+/104976
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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 d49fd7a5efb3..6ec56ee09138 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++) { |