Fixed mem-leak in tns_init/tns_free
This commit is contained in:
parent
d1a1e0142b
commit
72071d5e9d
1 changed files with 1 additions and 1 deletions
2
thumbs.c
2
thumbs.c
|
@ -186,7 +186,7 @@ void tns_init(tns_t *tns, int cnt, win_t *win) {
|
|||
void tns_free(tns_t *tns) {
|
||||
int i;
|
||||
|
||||
if (tns != NULL)
|
||||
if (tns == NULL)
|
||||
return;
|
||||
|
||||
if (tns->thumbs != NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue