diff options
author | Thomas White <taw@physics.org> | 2013-02-18 10:47:12 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-18 10:47:12 +0100 |
commit | 64fb806753a89a29cf7a67ed280d8b51b52edd14 (patch) | |
tree | 85da50c5f5a4b94cacd02569ecd72c2a9d4db4cb /libcrystfel/src/image.c | |
parent | 2a33b77d38b6d322e456fa1e2cefcbe50620dc39 (diff) |
Read GrainSpotter's output properly
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 6e4fd40a..8fe3d69c 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -177,3 +177,13 @@ void image_add_crystal(struct image *image, Crystal *cryst) image->crystals = crs; image->n_crystals = n+1; } + + +void free_all_crystals(struct image *image) +{ + int i; + + for ( i=0; i<image->n_crystals; i++ ) { + crystal_free(image->crystals[i]); + } +} |