[nctabbed] break loop in nctabbed_destroy()

This commit is contained in:
nick black 2021-03-25 15:45:53 -04:00
parent e0c3f4dd82
commit 636b7a5d45
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);