Skip to content

Commit

Permalink
free cache_tmpfile in tns_free (#485)
Browse files Browse the repository at this point in the history
doesn't really matter since the process is about to exit
anyways, but makes it consistent with everything else.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/485
  • Loading branch information
N-R-K committed Feb 12, 2024
1 parent 0faff18 commit 6cc1225
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thumbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ CLEANUP void tns_free(tns_t *tns)

free(cache_dir);
cache_dir = NULL;
free(cache_tmpfile);
cache_tmpfile = cache_tmpfile_base = NULL;
}

static Imlib_Image tns_scale_down(Imlib_Image im, int dim)
Expand Down

0 comments on commit 6cc1225

Please sign in to comment.