Skip to content

Commit

Permalink
vis
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Sep 13, 2023
1 parent e132264 commit d299a61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rebound.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ void reb_free_pointers(struct reb_simulation* const r){
free(r->simulationarchive_filename);
}
reb_tree_delete(r);
#ifndef _WIN32
// Visualization is not support on Windows
if(r->display_data){
pthread_mutex_destroy(&(r->display_data->mutex));
free(r->display_data->r_copy);
Expand All @@ -314,6 +316,7 @@ void reb_free_pointers(struct reb_simulation* const r){
free(r->display_data->orbit_data);
free(r->display_data); // TODO: Free other pointers in display_data
}
#endif // _WIN32
if (r->gravity_cs){
free(r->gravity_cs );
}
Expand Down

0 comments on commit d299a61

Please sign in to comment.