Krolyxon
Commit 72071d5

Branches

Refs →

nsxiv72071d5

Fixed mem-leak in tns_init/tns_free

Author
Bert Münnich
Date
2012-05-13 22:01 +0200
Parent
d1a1e01
Commit
72071d5e9d40c4c14767f701d92b020571f98bdd

+1 −1

1 file changed

  1. M thumbs.c +1 −1
M thumbs.c View
@@ -186,7 +186,7 @@ void tns_init(tns_t *tns, int cnt, win_t *win) {
186186 void tns_free(tns_t *tns) {
187187 int i;
188188
189− if (tns != NULL)
189+ if (tns == NULL)
190190 return;
191191
192192 if (tns->thumbs != NULL) {