diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-18 18:37:20 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-18 18:37:20 +0200 |
commit | 164986763a29db97abb52b15cbd282b5636d83c0 (patch) | |
tree | 5488b31250f631f2b9f7b97251dec4c045cd5fb2 | |
parent | 09d0a36e0370f7ca9bdb171bf93c5ac3131c5a92 (diff) |
free schemes as array
this makes it slightly easier to add custom schemes aswell
-rw-r--r-- | dmenu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -92,13 +92,13 @@ calcoffsets(void) | |||
92 | static void | 92 | static void |
93 | cleanup(void) | 93 | cleanup(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); |