Skip to content

Commit

Permalink
eliminate clang-tidy memory leak bitchery
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 23, 2024
1 parent 87782f3 commit 1995749
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/demo/fission.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ drop_bricks(struct notcurses* nc, struct ncplane** arr, int arrcount){
}
}
do{
DEMO_RENDER(nc);
int e = demo_render(nc);
if(e){
free(speeds);
return e;
}
// don't allow gaps in the active range. so long as felloff is true, we've only handled
// planes which have fallen off the screen, and can be collected.
bool felloff = true;
Expand Down

0 comments on commit 1995749

Please sign in to comment.