Fixed mem-leak in tns_init/tns_free

This commit is contained in:
Bert Münnich 2012-05-13 22:01:09 +02:00
parent d1a1e0142b
commit 72071d5e9d

View file

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