mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
[dwm][PATCH] remember to free everything we create
This commit is contained in:
parent
3567e59e20
commit
21ba1d7bb3
2
dwm.c
2
dwm.c
@ -892,7 +892,9 @@ cleanup(void)
|
|||||||
drw_cur_free(drw, cursor[i]);
|
drw_cur_free(drw, cursor[i]);
|
||||||
for (i = 0; i < LENGTH(colors); i++)
|
for (i = 0; i < LENGTH(colors); i++)
|
||||||
free(scheme[i]);
|
free(scheme[i]);
|
||||||
|
free(scheme);
|
||||||
XDestroyWindow(dpy, wmcheckwin);
|
XDestroyWindow(dpy, wmcheckwin);
|
||||||
|
drw_fontset_free(drw->fonts);
|
||||||
drw_free(drw);
|
drw_free(drw);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
|
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user