From 6ccba6087654fbbd16644e7f0fd93daed479f9d3 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 28 Nov 2017 14:01:16 +0100 Subject: Fix FanFlatBeamLineKernelProjector memleak --- include/astra/FanFlatBeamLineKernelProjector2D.inl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/astra/FanFlatBeamLineKernelProjector2D.inl') diff --git a/include/astra/FanFlatBeamLineKernelProjector2D.inl b/include/astra/FanFlatBeamLineKernelProjector2D.inl index 927aa09..eb73de8 100644 --- a/include/astra/FanFlatBeamLineKernelProjector2D.inl +++ b/include/astra/FanFlatBeamLineKernelProjector2D.inl @@ -207,4 +207,8 @@ void CFanFlatBeamLineKernelProjector2D::projectBlock_internal(int _iProjFrom, in } // end loop detector } // end loop angles + // Delete created vec geometry if required + if (dynamic_cast(m_pProjectionGeometry)) + delete pVecProjectionGeometry; + } -- cgit v1.2.3