From 4de904515d911b272e5b5db034df33f761208ee2 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 25 Sep 2014 13:33:41 +0200 Subject: Fix leak --- matlab/tools/astra_create_fbp_reconstruction.m | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3