summaryrefslogtreecommitdiffstats
path: root/include/astra/FanFlatBeamLineKernelProjector2D.inl
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-11-28 14:01:16 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-11-28 14:01:16 +0100
commit6ccba6087654fbbd16644e7f0fd93daed479f9d3 (patch)
treee9b7f8885c704703d226594c21cf3080cb7de392 /include/astra/FanFlatBeamLineKernelProjector2D.inl
parent985057bb58bdb85a31fd883f2651fce9fb3fad16 (diff)
downloadastra-6ccba6087654fbbd16644e7f0fd93daed479f9d3.tar.gz
astra-6ccba6087654fbbd16644e7f0fd93daed479f9d3.tar.bz2
astra-6ccba6087654fbbd16644e7f0fd93daed479f9d3.tar.xz
astra-6ccba6087654fbbd16644e7f0fd93daed479f9d3.zip
Fix FanFlatBeamLineKernelProjector memleak
Diffstat (limited to 'include/astra/FanFlatBeamLineKernelProjector2D.inl')
-rw-r--r--include/astra/FanFlatBeamLineKernelProjector2D.inl4
1 files changed, 4 insertions, 0 deletions
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<CFanFlatProjectionGeometry2D*>(m_pProjectionGeometry))
+ delete pVecProjectionGeometry;
+
}