svgio/source/svgreader/svgfeblendnode.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b25b8a41ab93890a71859feeba458523c0ec7015
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Apr 15 10:00:05 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Apr 15 14:07:26 2024 +0200

    cid#1596322 Resource leak
    
    Change-Id: Ied68c2c6d69437ea0236724279b2353015cd1e65
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166110
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/svgio/source/svgreader/svgfeblendnode.cxx 
b/svgio/source/svgreader/svgfeblendnode.cxx
index 918912fa54d8..d106ea6e643b 100644
--- a/svgio/source/svgreader/svgfeblendnode.cxx
+++ b/svgio/source/svgreader/svgfeblendnode.cxx
@@ -147,8 +147,8 @@ void 
SvgFeBlendNode::apply(drawinglayer::primitive2d::Primitive2DContainer& rTar
         aBmpEx = vcl::bitmap::DrawBitmapInRect(aBmpEx, aRange, aBaseRect);
         aBmpEx2 = vcl::bitmap::DrawBitmapInRect(aBmpEx2, aRange2, aBaseRect);
 
-        BitmapScreenBlendFilter* pScreenBlendFilter = new 
BitmapScreenBlendFilter(aBmpEx, aBmpEx2);
-        BitmapEx aResBmpEx = pScreenBlendFilter->execute();
+        BitmapScreenBlendFilter aScreenBlendFilter(aBmpEx, aBmpEx2);
+        BitmapEx aResBmpEx = aScreenBlendFilter.execute();
 
         const drawinglayer::primitive2d::Primitive2DReference xRef(
             new drawinglayer::primitive2d::BitmapPrimitive2D(

Reply via email to