diff options
author | Thomas White <taw@physics.org> | 2020-08-19 12:33:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-19 12:33:04 +0200 |
commit | f44e75e04cf0eaca870e29c9a3e66e2b410b897b (patch) | |
tree | 13dea77942849ab3aba04b10d9902c9c4a7ef98d /src | |
parent | 5f3ba5fc6a484fc234d8d329f1fcfe165db07156 (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')
-rw-r--r-- | src/cell_explorer.c | 4 |
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++; |