summaryrefslogtreecommitdiffstats
path: root/matlab/tools
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-09-09 13:59:38 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2015-09-09 13:59:38 +0200
commit058613937ddf318f5d6d4c771a20dbdddfbdde7c (patch)
tree8d45a59b996cca2b1738155b0d5b696e07dad299 /matlab/tools
parent026aa46c5db24ddd687cec0fa6e056a2ee3790c5 (diff)
parent9cfe943682bd6e02d5fb8493cb9c4c98623cb441 (diff)
downloadastra-058613937ddf318f5d6d4c771a20dbdddfbdde7c.tar.gz
astra-058613937ddf318f5d6d4c771a20dbdddfbdde7c.tar.bz2
astra-058613937ddf318f5d6d4c771a20dbdddfbdde7c.tar.xz
astra-058613937ddf318f5d6d4c771a20dbdddfbdde7c.zip
Merge pull request #90 from wjp/opTomo_leak
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