summaryrefslogtreecommitdiffstats
path: root/matlab/tools
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-09-04 14:16:41 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-09-04 14:16:41 +0200
commit9cfe943682bd6e02d5fb8493cb9c4c98623cb441 (patch)
tree8d45a59b996cca2b1738155b0d5b696e07dad299 /matlab/tools
parent026aa46c5db24ddd687cec0fa6e056a2ee3790c5 (diff)
downloadastra-9cfe943682bd6e02d5fb8493cb9c4c98623cb441.tar.gz
astra-9cfe943682bd6e02d5fb8493cb9c4c98623cb441.tar.bz2
astra-9cfe943682bd6e02d5fb8493cb9c4c98623cb441.tar.xz
astra-9cfe943682bd6e02d5fb8493cb9c4c98623cb441.zip
Fix algorithm leak in opTomo
Diffstat (limited to 'matlab/tools')
-rw-r--r--matlab/tools/opTomo.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/matlab/tools/opTomo.m b/matlab/tools/opTomo.m
index 14128d2..71dfb1e 100644
--- a/matlab/tools/opTomo.m
+++ b/matlab/tools/opTomo.m
@@ -248,6 +248,7 @@ classdef opTomo < opSpot
% cleanup
astra_mex_data3d('delete', vol_id);
astra_mex_data3d('delete', sino_id);
+ astra_mex_algorithm('delete', alg_id);
else
% X is passed as a vector, reshape it into projection data
x = reshape(x, op.proj_size);
@@ -272,6 +273,7 @@ classdef opTomo < opSpot
% cleanup
astra_mex_data3d('delete', vol_id);
astra_mex_data3d('delete', sino_id);
+ astra_mex_algorithm('delete', alg_id);
end
end % opTomo_intrnl3D