diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-19 08:35:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-20 11:52:11 +0200 |
commit | 7ba388ee8c7eb8db66b45c541e1e8421756e8b52 (patch) | |
tree | 77f4ccfddca8b2590ebb487189de1ab9fbd9ddc6 /svgio/source | |
parent | cc3663bbaed4f65d64154e5f9abb51a5f622f710 (diff) |
cid#1596521 Resource leak
Change-Id: I3064195408e508f1f77d22b82ad464a651064193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166287
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgfecompositenode.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgfecompositenode.cxx b/svgio/source/svgreader/svgfecompositenode.cxx index c396eec78c0a..3eba9f300062 100644 --- a/svgio/source/svgreader/svgfecompositenode.cxx +++ b/svgio/source/svgreader/svgfecompositenode.cxx @@ -235,10 +235,9 @@ void SvgFeCompositeNode::apply(drawinglayer::primitive2d::Primitive2DContainer& aBmpEx = vcl::bitmap::DrawBitmapInRect(aBmpEx, aRange, aBaseRect); aBmpEx2 = vcl::bitmap::DrawBitmapInRect(aBmpEx2, aRange2, aBaseRect); - BitmapArithmeticBlendFilter* pArithmeticFilter - = new BitmapArithmeticBlendFilter(aBmpEx, aBmpEx2); - BitmapEx aResBmpEx = pArithmeticFilter->execute(maK1.getNumber(), maK2.getNumber(), - maK3.getNumber(), maK4.getNumber()); + BitmapArithmeticBlendFilter aArithmeticFilter(aBmpEx, aBmpEx2); + BitmapEx aResBmpEx = aArithmeticFilter.execute(maK1.getNumber(), maK2.getNumber(), + maK3.getNumber(), maK4.getNumber()); const drawinglayer::primitive2d::Primitive2DReference xRef( new drawinglayer::primitive2d::BitmapPrimitive2D( |