diff options
author | Thomas White <taw@physics.org> | 2014-01-21 11:12:55 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-01-21 11:24:47 +0100 |
commit | 233487cb155a6ad7a3f7443e6da90f3b08d2ff61 (patch) | |
tree | c4345893879697abb87c7a52cc98f85084df0979 /libcrystfel/src/image.c | |
parent | 0fbadb5e611c0a1d480f2bae1ed0cbd302e6a7e9 (diff) |
Fussiness
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index dcfd9b2a..f4a3384f 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -3,11 +3,12 @@ * * Handle images and image features * - * Copyright © 2012 Deutsches Elektronen-Synchrotron DESY, - * a research centre of the Helmholtz Association. + * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. * * Authors: - * 2011-2012 Thomas White <taw@physics.org> + * 2011-2014 Thomas White <taw@physics.org> + * 2014 Kenneth Beyerlein <kenneth.beyerlein@desy.de> * * This file is part of CrystFEL. * @@ -179,12 +180,13 @@ void image_add_crystal(struct image *image, Crystal *cryst) } +/* Free all crystals, including their RefLists and UnitCells */ void free_all_crystals(struct image *image) { int i; if ( image->crystals == NULL ) return; for ( i=0; i<image->n_crystals; i++ ) { - Crystal *cr= image->crystals[i]; + Crystal *cr = image->crystals[i]; reflist_free(crystal_get_reflections(cr)); cell_free(crystal_get_cell(cr)); crystal_free(image->crystals[i]); |