aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partialator.c3
-rw-r--r--src/process_hkl.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 1126095a..a9930d9e 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -551,7 +551,6 @@ static RefList *apply_max_adu(RefList *list, double max_adu)
copy_data(nrefl, refl);
}
}
- reflist_free(list);
return nlist;
}
@@ -1405,7 +1404,7 @@ int main(int argc, char *argv[])
return 1;
}
crystals = crystals_new;
- crystals[n_crystals] = image->crystals[i];
+ crystals[n_crystals] = crystal_copy_deep(image->crystals[i]);
cr = crystals[n_crystals];
/* Create a completely new, separate image
diff --git a/src/process_hkl.c b/src/process_hkl.c
index b9d88dfe..4fe1dbeb 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -455,10 +455,6 @@ static int merge_all(Stream *st, RefList *model, RefList *reference,
if ( r == 0 ) n_crystals_used++;
}
- reflist_free(crystal_get_reflections(cr));
- cell_free(crystal_get_cell(cr));
- crystal_free(cr);
-
if ( n_crystals_used == stop_after ) break;
}