Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
7e7f9fed
Commit
7e7f9fed
authored
Jul 06, 2017
by
Pedro Gonnet
Browse files
clear the parts/xparts/gparts/sparts pointers when recycling top-level cells.
parent
ab254282
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
7e7f9fed
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment