summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3c05152..c7ad72f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -777,7 +777,9 @@ free_screen (rp_screen *s)
if (s->xft_font)
{
XftColorFree (dpy, DefaultVisual (dpy, s->screen_num),
- DefaultColormap (dpy, s->screen_num), &s->xft_color);
+ DefaultColormap (dpy, s->screen_num), &s->xft_fg_color);
+ XftColorFree (dpy, DefaultVisual (dpy, s->screen_num),
+ DefaultColormap (dpy, s->screen_num), &s->xft_bg_color);
XftFontClose (dpy, s->xft_font);
}
#endif
@@ -785,6 +787,7 @@ free_screen (rp_screen *s)
XFreeCursor (dpy, s->rat);
XFreeColormap (dpy, s->def_cmap);
XFreeGC (dpy, s->normal_gc);
+ XFreeGC (dpy, s->inverse_gc);
free (s->display_string);
}