cleanup schemes and colors

This commit is contained in:
Hiltjo Posthuma
2025-09-27 12:10:17 +02:00
parent 74edc27caa
commit 93f26863d1
3 changed files with 30 additions and 4 deletions

4
dwm.c
View File

@@ -485,8 +485,10 @@ cleanup(void)
cleanupmon(mons);
for (i = 0; i < CurLast; i++)
drw_cur_free(drw, cursor[i]);
for (i = 0; i < LENGTH(colors); i++)
for (i = 0; i < LENGTH(colors); i++) {
drw_scm_free(drw, scheme[i], 3);
free(scheme[i]);
}
free(scheme);
XDestroyWindow(dpy, wmcheckwin);
drw_free(drw);