Permalink
Browse files

Fixed mem-leak in tns_init/tns_free

  • Loading branch information...
1 parent d1a1e01 commit 72071d5e9d40c4c14767f701d92b020571f98bdd @muennich committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 thumbs.c
View
@@ -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) {

0 comments on commit 72071d5

Please sign in to comment.