summaryrefslogtreecommitdiffstats
path: root/src/SartAlgorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SartAlgorithm.cpp')
-rw-r--r--src/SartAlgorithm.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/SartAlgorithm.cpp b/src/SartAlgorithm.cpp
index 5c8f59b..6d39107 100644
--- a/src/SartAlgorithm.cpp
+++ b/src/SartAlgorithm.cpp
@@ -46,6 +46,10 @@ void CSartAlgorithm::_clear()
{
CReconstructionAlgorithm2D::_clear();
m_piProjectionOrder = NULL;
+ m_piProjectionOrder = NULL;
+ m_pTotalRayLength = NULL;
+ m_pTotalPixelWeight = NULL;
+
m_iProjectionCount = 0;
m_iCurrentProjection = 0;
m_bIsInitialized = false;
@@ -57,10 +61,19 @@ void CSartAlgorithm::_clear()
void CSartAlgorithm::clear()
{
CReconstructionAlgorithm2D::clear();
- if (m_piProjectionOrder) {
- delete[] m_piProjectionOrder;
- m_piProjectionOrder = NULL;
- }
+
+ delete[] m_piProjectionOrder;
+ m_piProjectionOrder = NULL;
+
+ delete m_pTotalRayLength;
+ m_pTotalRayLength = NULL;
+
+ delete m_pTotalPixelWeight;
+ m_pTotalPixelWeight = NULL;
+
+ delete m_pDiffSinogram;
+ m_pDiffSinogram = NULL;
+
m_iProjectionCount = 0;
m_iCurrentProjection = 0;
m_bIsInitialized = false;