mirror of https://codeberg.org/nsxiv/nsxiv
fix: thumbnail leak when removing the last file (#423)
pull/323/headbf6c062
tried to fixed the thumbnail leak, but it was done inside a `if (n+1 < filecnt)` branch, meaning the thumbnail was still leaking away whenever the last file was removed. we need to unload the thumb regardless of whether it's in the middle or not. this bug was caught due to the recent `assert`s that were added in01f3cf2
. Closes: https://codeberg.org/nsxiv/nsxiv/issues/422 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/423 Reviewed-by: eylles <eylles@noreply.codeberg.org> Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
parent
8f0322c2e3
commit
19b47192f2
Loading…
Reference in New Issue