From 29cca07716b48f9e433087f5dbb202165b1897e1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 5 Feb 2013 11:36:44 +0100 Subject: WIP on bringing programs up to date --- libcrystfel/src/dirax.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/dirax.c') diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c index 0b2debda..6fbb9663 100644 --- a/libcrystfel/src/dirax.c +++ b/libcrystfel/src/dirax.c @@ -128,17 +128,20 @@ static int check_cell(struct dirax_private *dp, struct image *image, return 0; } - crystal_set_cell(cr, cell); + crystal_set_cell(cr, out); if ( dp->indm & INDEXING_CHECK_PEAKS ) { if ( !peak_sanity_check(image, &cr, 1) ) { crystal_free(cr); /* Frees the cell as well */ + cell_free(out); return 0; } } image_add_crystal(image, cr); + cell_free(out); /* Crystal makes its own copy */ + return 1; } -- cgit v1.2.3