1
0

improved the memory leak prevention

This commit is contained in:
arg@mig29 2006-12-06 11:19:06 +01:00
parent ab3b3a8f61
commit 6b345353e3

5
main.c
View File

@ -51,6 +51,9 @@ cleanup(void) {
XFreePixmap(dpy, dc.drawable);
XFreeGC(dpy, dc.gc);
XDestroyWindow(dpy, barwin);
XFreeCursor(dpy, cursor[CurNormal]);
XFreeCursor(dpy, cursor[CurResize]);
XFreeCursor(dpy, cursor[CurMove]);
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
free(seltag);
@ -104,7 +107,7 @@ setup(void) {
numlockmask = (1 << i);
}
}
XFree(modmap);
XFreeModifiermap(modmap);
/* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
| EnterWindowMask | LeaveWindowMask;