diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2025-09-29 12:48:27 -0400 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2025-09-29 12:48:27 -0400 |
| commit | 7c3abae4e68b6a21f05cb04f3af31217259c0aa9 (patch) | |
| tree | 11492be7828b456ffd9fce1a37a7f78561dab017 /dwm.c | |
| parent | cleanup schemes and colors (diff) | |
| download | dwm-7c3abae4e68b6a21f05cb04f3af31217259c0aa9.tar.gz dwm-7c3abae4e68b6a21f05cb04f3af31217259c0aa9.tar.bz2 dwm-7c3abae4e68b6a21f05cb04f3af31217259c0aa9.zip | |
drw.c: drw_scm_free: call free inside
Because drw_scm_create() allocates it.
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -485,10 +485,8 @@ 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); |
