mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
luigi: don't free garbage on error path
This commit is contained in:
parent
3384fad429
commit
fa865d1971
@ -171,7 +171,7 @@ int luigi_demo(struct notcurses* nc){
|
||||
for(i = 0 ; i < 3 ; ++i){
|
||||
lns[i] = ncplane_new(nc, height, 16, yoff, 0, NULL);
|
||||
if(lns[i] == NULL){
|
||||
while(--i){
|
||||
while(i--){
|
||||
ncplane_destroy(lns[i]);
|
||||
}
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user