--- a/main.c Tue Dec 05 14:21:18 2006 +0100
+++ b/main.c Wed Dec 06 11:19:06 2006 +0100
@@ -51,6 +51,9 @@
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 @@
numlockmask = (1 << i);
}
}
- XFree(modmap);
+ XFreeModifiermap(modmap);
/* select for events */
wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
| EnterWindowMask | LeaveWindowMask;