timproved the memory leak prevention - dwm - [fork] customized build of dwm, the dynamic window manager
HTML git clone git://src.adamsgaard.dk/dwm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6b345353e37e8af8eaa83956ef378015c0046eda
DIR parent ab3b3a8f6195f1ab933c3e9e3fdd686ba1a6e3df
HTML Author: arg@mig29 <unknown>
Date: Wed, 6 Dec 2006 11:19:06 +0100
improved the memory leak prevention
Diffstat:
M main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
DIR diff --git a/main.c b/main.c
t@@ -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);
t@@ -104,7 +107,7 @@ setup(void) {
numlockmask = (1 << i);
}
}
- XFree(modmap);
+ XFreeModifiermap(modmap);
/* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
| EnterWindowMask | LeaveWindowMask;