aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@googlemail.com>2012-05-13 22:01:09 +0200
committerBert Münnich <be.muennich@googlemail.com>2012-05-13 22:01:09 +0200
commit72071d5e9d40c4c14767f701d92b020571f98bdd (patch)
tree0f6fe098bce380f9186f2e146fc3ac614f15c899
parentd1a1e0142b453a7083463eaf02402b4d3b31ff65 (diff)
Fixed mem-leak in tns_init/tns_free
-rw-r--r--thumbs.c2
1 files changed, 1 insertions, 1 deletions
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) {