aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2024-02-12 23:00:31 +0100
committerNRK <nrk@disroot.org>2024-02-12 23:00:31 +0100
commit6cc1225fef0eb74ecb651f72ea22921f3daecece (patch)
treeee07d4f72dda47d5b5acc64d6a2664ae46329d4a
parent0faff1866d304c9ea7ef9da542dd2a04ecf35da8 (diff)
downloadnsxiv-6cc1225fef0eb74ecb651f72ea22921f3daecece.tar.zst
free cache_tmpfile in tns_free (#485)
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
-rw-r--r--thumbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thumbs.c b/thumbs.c
index bd1e314..c7b9dc6 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -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)