summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Lockyer <thisisdaniellockyer@gmail.com>2016-05-02 16:35:11 +0100
committerDaniel Lockyer <thisisdaniellockyer@gmail.com>2016-05-02 16:35:11 +0100
commitfacde95b2b773f03331a1785082078f3a7f91b64 (patch)
treed1bc558eaa84b39b6d187703d4dd771ee0bcc384 /src
parent1411a41cb2871077f59ba13fe6cc4941ca5d1cf5 (diff)
src/main.c: rebase master and fix segfault issue
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);