aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-02 13:05:25 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit4c8f86c583b203fa4098b8e116a1d50cb435d883 (patch)
tree05c09e1436c4c72f6adb6e46b51ddee89b8d4f3a /src/process_image.c
parenta851516f08edab1f54592b4e6df5ff87d3c6dfd5 (diff)
Convert more bits to detgeom
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 34483f46..1d8def8b 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -452,16 +452,8 @@ out:
spectrum_free(image->spectrum);
}
- for ( i=0; i<image->det->n_panels; i++ ) {
- free(image->dp[i]);
- free(image->bad[i]);
- free(image->sat[i]);
- }
- free(image->dp);
- free(image->bad);
- free(image->sat);
+ /* Free image (including detgeom) */
+ image_free(image);
- image_feature_list_free(image->features);
- free_detector_geometry(image->det);
set_last_task(last_task, "sandbox");
}