diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-07-29 14:08:51 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-07-29 14:08:51 +0200 |
commit | 741675b458bf23cf437a6c56f95483c5c66af774 (patch) | |
tree | b9f58053cf0715536b397db2ce45cb58e9cb849a /include/astra/ParallelBeamLinearKernelProjector2D.inl | |
parent | b1ffc11d930c19bd73af9837a08bc8dde9fe8e72 (diff) | |
download | astra-741675b458bf23cf437a6c56f95483c5c66af774.tar.gz astra-741675b458bf23cf437a6c56f95483c5c66af774.tar.bz2 astra-741675b458bf23cf437a6c56f95483c5c66af774.tar.xz astra-741675b458bf23cf437a6c56f95483c5c66af774.zip |
Fix memory leak in CPU projectors
Diffstat (limited to 'include/astra/ParallelBeamLinearKernelProjector2D.inl')
-rw-r--r-- | include/astra/ParallelBeamLinearKernelProjector2D.inl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/astra/ParallelBeamLinearKernelProjector2D.inl b/include/astra/ParallelBeamLinearKernelProjector2D.inl index ecbdeb3..9b2c7b1 100644 --- a/include/astra/ParallelBeamLinearKernelProjector2D.inl +++ b/include/astra/ParallelBeamLinearKernelProjector2D.inl @@ -234,4 +234,7 @@ void CParallelBeamLinearKernelProjector2D::projectBlock_internal(int _iProjFrom, } // end loop detector } // end loop angles + + if (dynamic_cast<CParallelProjectionGeometry2D*>(m_pProjectionGeometry)) + delete pVecProjectionGeometry; } |