aboutsummaryrefslogtreecommitdiff
path: root/src/cell_explorer.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-19 12:33:04 +0200
committerThomas White <taw@physics.org>2020-08-19 12:33:04 +0200
commitf44e75e04cf0eaca870e29c9a3e66e2b410b897b (patch)
tree13dea77942849ab3aba04b10d9902c9c4a7ef98d /src/cell_explorer.c
parent5f3ba5fc6a484fc234d8d329f1fcfe165db07156 (diff)
cell_explorer: Don't free crystals
The new Stream and DataTemplate APIs are much clearer on this: the crystals belong to the image.
Diffstat (limited to 'src/cell_explorer.c')
-rw-r--r--src/cell_explorer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c
index 9d4cdeec..7d1ca068 100644
--- a/src/cell_explorer.c
+++ b/src/cell_explorer.c
@@ -2039,15 +2039,13 @@ int main(int argc, char *argv[])
}
- w.cells[w.n_cells] = crystal_get_cell(cr);
+ w.cells[w.n_cells] = cell_new_from_cell(crystal_get_cell(cr));
if ( !right_handed(w.cells[w.n_cells]) ) {
ERROR("WARNING: Left-handed cell encountered\n");
}
w.indms[w.n_cells] = image->indexed_by;
w.n_cells++;
- crystal_free(cr);
-
}
n_chunks++;