diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-05-10 21:36:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-05-11 12:56:52 +0200 |
commit | 8fa788c393ed229ed065a3a26f316d02289dd0d3 (patch) | |
tree | 23e23893809566edc1236c6636586c152c9e5f7e /vcl/source | |
parent | ba63c4199d19b87d53bb167397180fc2d8686ff5 (diff) |
cid#1529966 silence bogus Resource leak
Bitmap::ReleaseAccess(foo) is just delete foo, so null is fine there
anyway
Change-Id: I18143c9cf0c63e985866276273b099f5d3b8d5a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151649
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/bitmap/BitmapMosaicFilter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/bitmap/BitmapMosaicFilter.cxx b/vcl/source/bitmap/BitmapMosaicFilter.cxx index 25d323d023f0..f9292838df11 100644 --- a/vcl/source/bitmap/BitmapMosaicFilter.cxx +++ b/vcl/source/bitmap/BitmapMosaicFilter.cxx @@ -159,11 +159,10 @@ BitmapEx BitmapMosaicFilter::execute(BitmapEx const& rBitmapEx) const if (pWriteAcc == pReadAcc) pWriteAcc = nullptr; Bitmap::ReleaseAccess(pReadAcc); + Bitmap::ReleaseAccess(pWriteAcc); if (pNewBmp) { - Bitmap::ReleaseAccess(pWriteAcc); - if (bRet) { const MapMode aMap(aBitmap.GetPrefMapMode()); |