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
1 changed files with 1 additions and 1 deletions

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