diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2014-09-25 13:33:41 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2014-09-25 13:33:41 +0200 |
commit | 4de904515d911b272e5b5db034df33f761208ee2 (patch) | |
tree | b225a56a2d88956194e10d1c4166a64902bae122 /matlab | |
parent | c719280350d4bcfb31c1e38b04a1e559d8a2e2c6 (diff) | |
download | astra-4de904515d911b272e5b5db034df33f761208ee2.tar.gz astra-4de904515d911b272e5b5db034df33f761208ee2.tar.bz2 astra-4de904515d911b272e5b5db034df33f761208ee2.tar.xz astra-4de904515d911b272e5b5db034df33f761208ee2.zip |
Fix leak
Diffstat (limited to 'matlab')
-rw-r--r-- | matlab/tools/astra_create_fbp_reconstruction.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/matlab/tools/astra_create_fbp_reconstruction.m b/matlab/tools/astra_create_fbp_reconstruction.m index 4456f9c..5540f27 100644 --- a/matlab/tools/astra_create_fbp_reconstruction.m +++ b/matlab/tools/astra_create_fbp_reconstruction.m @@ -20,4 +20,8 @@ cfg.Options.GPUindex = 0; alg_id = astra_mex_algorithm('create', cfg); astra_mex_algorithm('run', alg_id); +if numel(sinogram) ~= 1 + astra_mex_data2d('delete', sinogram_id); +end + FBP = astra_mex_data2d('get', FBP_id); |