Skip to content
Snippets Groups Projects
Commit 7e7f9fed authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

clear the parts/xparts/gparts/sparts pointers when recycling top-level cells.

parent ab254282
No related branches found
No related tags found
1 merge request!343Subset sorting
......@@ -229,6 +229,10 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
c->grav_long_range = NULL;
c->grav_down = NULL;
c->super = c;
c->parts = NULL;
c->xparts = NULL;
c->gparts = NULL;
c->sparts = NULL;
if (c->sort != NULL) {
free(c->sort);
c->sort = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment