Skip to content

Commit

Permalink
Don't double free the root
Browse files Browse the repository at this point in the history
  • Loading branch information
leonmavr committed Sep 16, 2024
1 parent 15e370b commit 1131b4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ int main() {
viz_flush();
qtree_delete(qtree.root);
}
free(qtree.root);
sleep(1);
viz_close();
}
3 changes: 2 additions & 1 deletion src/viz.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ void viz_flush() {
fprintf(viz_plot_pipe, "replot\n");
irect = ipoint = 0;
fflush(viz_plot_pipe);
usleep(25000);
// 20 fps
usleep(50000);
}


Expand Down

0 comments on commit 1131b4f

Please sign in to comment.