aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indexamajig.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 800430ba..6cf9cd15 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -306,6 +306,12 @@ static void *process_image(void *pargsv)
/* Perform 'fine' peak search */
search_peaks(&image);
+
+ /* Get rid of noise-filtered version at this point
+ * - it was strictly for the purposes of peak detection. */
+ free(image.data);
+ image.data = data_for_measurement;
+
if ( image_feature_count(image.features) < 5 ) goto done;
if ( config_dumpfound ) dump_peaks(&image, pargs->output_mutex);
@@ -335,10 +341,6 @@ static void *process_image(void *pargsv)
result->peaks_sane = 1;
}
- /* Get rid of noise-filtered version at this point */
- free(image.data);
- image.data = data_for_measurement;
-
/* Measure intensities if requested */
if ( config_nearbragg ) {
output_intensities(&image, image.indexed_cell,