summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-08-12 15:45:12 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-08-12 15:45:12 +0200
commit026aa46c5db24ddd687cec0fa6e056a2ee3790c5 (patch)
treee2735075ecedc79711574db0eab1cb037a31860c /matlab
parent60e726c9f6aab0ff66a46f9df3db975cfac84399 (diff)
downloadastra-026aa46c5db24ddd687cec0fa6e056a2ee3790c5.tar.gz
astra-026aa46c5db24ddd687cec0fa6e056a2ee3790c5.tar.bz2
astra-026aa46c5db24ddd687cec0fa6e056a2ee3790c5.tar.xz
astra-026aa46c5db24ddd687cec0fa6e056a2ee3790c5.zip
Fix algorithm object leak in astra_create_fbp_reconstruction.m
Diffstat (limited to 'matlab')
-rw-r--r--matlab/tools/astra_create_fbp_reconstruction.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/matlab/tools/astra_create_fbp_reconstruction.m b/matlab/tools/astra_create_fbp_reconstruction.m
index 5540f27..a2561b7 100644
--- a/matlab/tools/astra_create_fbp_reconstruction.m
+++ b/matlab/tools/astra_create_fbp_reconstruction.m
@@ -19,6 +19,7 @@ cfg.ProjectorId = proj_id;
cfg.Options.GPUindex = 0;
alg_id = astra_mex_algorithm('create', cfg);
astra_mex_algorithm('run', alg_id);
+astra_mex_algorithm('delete', alg_id);
if numel(sinogram) ~= 1
astra_mex_data2d('delete', sinogram_id);