mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
[nctabbed] break loop in nctabbed_destroy()
This commit is contained in:
parent
e0c3f4dd82
commit
636b7a5d45
@ -389,6 +389,10 @@ void nctabbed_destroy(nctabbed* nt){
|
||||
}
|
||||
nctab* t = nt->leftmost;
|
||||
nctab* tmp;
|
||||
if(t){
|
||||
t->prev->next = t->next;
|
||||
t->next->prev = t->prev;
|
||||
}
|
||||
while(t){
|
||||
tmp = t->next;
|
||||
free(t->name);
|
||||
|
Loading…
Reference in New Issue
Block a user