From 72071d5e9d40c4c14767f701d92b020571f98bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sun, 13 May 2012 22:01:09 +0200 Subject: Fixed mem-leak in tns_init/tns_free --- thumbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thumbs.c b/thumbs.c index 9e49ca4..d097bbe 100644 --- a/thumbs.c +++ b/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) { -- cgit v1.2.3