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
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment