summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ae3469f..fef86b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -196,6 +196,9 @@ void feh_clean_exit(void)
free(opt.menu_bg);
free(opt.menu_font);
+ if(disp)
+ XCloseDisplay(disp);
+
if (opt.filelistfile)
feh_write_filelist(filelist, opt.filelistfile);