From cee7ee0b8a4cafa1f8f3c67518f86c895520f5a6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 23 Sep 2023 19:20:52 +0200 Subject: image_create_dp_bad_sat: Don't worry about "sat" The saturation array is created by create_satmap when needed, which takes care that all panels get an array (so we only have to check image->sat != NULL). The array created by image_create_dp_bad_sat was actually leaked! In any case, saturation maps are rarely used. We can do without the extra allocations. The routine name has been changed accordingly, to prevent future confusion. --- libcrystfel/src/image.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src/image.h') diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h index 949ac7d1..8930ffe7 100644 --- a/libcrystfel/src/image.h +++ b/libcrystfel/src/image.h @@ -265,8 +265,8 @@ extern ImageFeatureList *image_read_peaks(const DataTemplate *dtempl, extern char **image_expand_frames(const DataTemplate *dtempl, const char *filename, int *nframes); -extern int image_create_dp_bad_sat(struct image *image, - const DataTemplate *dtempl); +extern int image_create_dp_bad(struct image *image, + const DataTemplate *dtempl); extern int image_set_zero_data(struct image *image, const DataTemplate *dtempl); -- cgit v1.2.3