aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-22 13:53:38 +0200
committerThomas White <taw@physics.org>2014-05-22 13:53:38 +0200
commit841f5ab4a7875d0b48e1a52c2dfb3919705cc020 (patch)
tree0a91f5f9d7ea5b4ea075cad8c446888e26fb9138 /src
parentb7bfc208826e6573399a2862e5aa125f650e34ee (diff)
cell_explorer: Use read_stream_2()
Diffstat (limited to 'src')
-rw-r--r--src/cell_explorer.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c
index 0df5032c..d55deb2b 100644
--- a/src/cell_explorer.c
+++ b/src/cell_explorer.c
@@ -1273,29 +1273,22 @@ int main(int argc, char *argv[])
cur.det = NULL;
- if ( read_chunk(st, &cur) != 0 ) {
+ if ( read_chunk_2(st, &cur, STREAM_READ_UNITCELL) != 0 ) {
break;
}
- image_feature_list_free(cur.features);
-
for ( i=0; i<cur.n_crystals; i++ ) {
- RefList *cr_refl;
Crystal *cr;
cr = cur.crystals[i];
- cr_refl = crystal_get_reflections(cr);
- reflist_free(cr_refl);
-
if ( w.n_cells == max_cells ) {
UnitCell **cells_new;
IndexingMethod *indms_new;
size_t nsz;
-
nsz = (max_cells+1024)*sizeof(UnitCell *);
cells_new = realloc(w.cells, nsz);
if ( cells_new == NULL ) {