aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/dirax.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-05 11:36:44 +0100
committerThomas White <taw@physics.org>2013-02-05 11:36:44 +0100
commit29cca07716b48f9e433087f5dbb202165b1897e1 (patch)
tree43c2eb55de6ac540d70308c9c6cbb9c01738b635 /libcrystfel/src/dirax.c
parente132f0a215392b13bf289cad55f2fece6e193625 (diff)
WIP on bringing programs up to date
Diffstat (limited to 'libcrystfel/src/dirax.c')
-rw-r--r--libcrystfel/src/dirax.c5
1 files changed, 4 insertions, 1 deletions
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;
}