drw.c: drw_scm_free: call free inside

Because drw_scm_create() allocates it.
This commit is contained in:
Hiltjo Posthuma
2025-09-29 18:47:16 +02:00
parent 77f96d704b
commit 8b48986f4c
2 changed files with 2 additions and 3 deletions

View File

@@ -101,10 +101,8 @@ cleanup(void)
size_t i;
XUngrabKeyboard(dpy, CurrentTime);
for (i = 0; i < SchemeLast; i++) {
for (i = 0; i < SchemeLast; i++)
drw_scm_free(drw, scheme[i], 2);
free(scheme[i]);
}
for (i = 0; items && items[i].text; ++i)
free(items[i].text);
free(items);