aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dmenu.c b/dmenu.c
index 4f22ffe..1c2e780 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -92,13 +92,13 @@ calcoffsets(void)
92static void 92static void
93cleanup(void) 93cleanup(void)
94{ 94{
95 size_t i;
96
95 XUngrabKey(dpy, AnyKey, AnyModifier, root); 97 XUngrabKey(dpy, AnyKey, AnyModifier, root);
96 drw_clr_free(scheme[SchemeNorm].bg); 98 for (i = 0; i < SchemeLast; i++) {
97 drw_clr_free(scheme[SchemeNorm].fg); 99 drw_clr_free(scheme[i].bg);
98 drw_clr_free(scheme[SchemeSel].fg); 100 drw_clr_free(scheme[i].fg);
99 drw_clr_free(scheme[SchemeSel].bg); 101 }
100 drw_clr_free(scheme[SchemeOut].fg);
101 drw_clr_free(scheme[SchemeOut].bg);
102 drw_free(drw); 102 drw_free(drw);
103 XSync(dpy, False); 103 XSync(dpy, False);
104 XCloseDisplay(dpy); 104 XCloseDisplay(dpy);