Krolyxon
Commit e438009

Branches

Refs →

nsxive438009

Merge branch 'nsxiv:master' into master

Author
krolyxon
Date
2023-03-11 19:42 +0530
Committer
GitHub · 2023-03-11 19:42 +0530
Parents
4ef2062 19b4719
Commit
e4380093d694f075e07f489e2c2e764785b441f2

+2 −4

1 file changed

  1. M main.c +2 −4
M main.c View
@@ -195,13 +195,11 @@ void remove_file(int n, bool manual)
195195 if (files[n].path != files[n].name)
196196 free((void*) files[n].path);
197197 free((void*) files[n].name);
198+ if (tns.thumbs != NULL)
199+ tns_unload(&tns, n);
198200
199201 if (n + 1 < filecnt) {
200202 if (tns.thumbs != NULL) {
201− if (tns.thumbs[n].im != NULL) {
202− imlib_context_set_image(tns.thumbs[n].im);
203− imlib_free_image_and_decache();
204− }
205203 memmove(tns.thumbs + n, tns.thumbs + n + 1, (filecnt - n - 1) *
206204 sizeof(*tns.thumbs));
207205 memset(tns.thumbs + filecnt - 1, 0, sizeof(*tns.thumbs));