diff options
| author | krolyxon <106688908+krolyxon@users.noreply.github.com> | 2023-03-11 19:42:42 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 19:42:42 +0530 |
| commit | e4380093d694f075e07f489e2c2e764785b441f2 (patch) | |
| tree | 0a4e3d0a28f996d8caaaa2ecc0706e3e004f060c | |
| parent | 4ef20627a785ffa91f741a86a1de29557b2337cb (diff) | |
| parent | 19b47192f21939b46a8f46d131c31f138aaa3b33 (diff) | |
Merge branch 'nsxiv:master' into master
| -rw-r--r-- | main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -195,13 +195,11 @@ void remove_file(int n, bool manual) if (files[n].path != files[n].name) free((void*) files[n].path); free((void*) files[n].name); + if (tns.thumbs != NULL) + tns_unload(&tns, n); if (n + 1 < filecnt) { if (tns.thumbs != NULL) { - if (tns.thumbs[n].im != NULL) { - imlib_context_set_image(tns.thumbs[n].im); - imlib_free_image_and_decache(); - } memmove(tns.thumbs + n, tns.thumbs + n + 1, (filecnt - n - 1) * sizeof(*tns.thumbs)); memset(tns.thumbs + filecnt - 1, 0, sizeof(*tns.thumbs)); |
