aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/process_image.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/process_image.c b/src/process_image.c
index d87f2cff..bec73a08 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -439,16 +439,10 @@ out:
sb_shared->n_hadcrystals += any_crystals;
pthread_mutex_unlock(&sb_shared->totals_lock);
- for ( i=0; i<image->n_crystals; i++ ) {
- cell_free(crystal_get_cell(image->crystals[i]));
- reflist_free(crystal_get_reflections(image->crystals[i]));
- crystal_free(image->crystals[i]);
- }
- free(image->crystals);
-
/* Free spectrum only if we generated it for this image */
if ( iargs->spectrum == NULL ) {
spectrum_free(image->spectrum);
+ image->spectrum = NULL;
}
/* Free image (including detgeom) */