nsxiv72071d5
Fixed mem-leak in tns_init/tns_free
+1 −1
1 file changed
- M thumbs.c +1 −1
| @@ -186,7 +186,7 @@ void tns_init(tns_t *tns, int cnt, win_t *win) { | |||
| 186 | 186 | void tns_free(tns_t *tns) { | |
| 187 | 187 | int i; | |
| 188 | 188 | ||
| 189 | − | if (tns != NULL) | |
| 189 | + | if (tns == NULL) | |
| 190 | 190 | return; | |
| 191 | 191 | ||
| 192 | 192 | if (tns->thumbs != NULL) { | |