aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 04e155a..53df538 100644
--- a/main.c
+++ b/main.c
@@ -717,6 +717,7 @@ void run(void)
if (arl_handle(&arl)) {
/* when too fast, imlib2 can't load the image */
nanosleep(&ten_ms, NULL);
+ img_close(&img, true);
load_image(fileidx);
redraw();
}