dwm-meillo

diff main.c @ 616:f617c75a8405

improved the memory leak prevention
author arg@mig29
date Wed, 06 Dec 2006 11:19:06 +0100
parents f4285a97e3e6
children bda4880c462d
line diff
     1.1 --- a/main.c	Tue Dec 05 14:21:18 2006 +0100
     1.2 +++ b/main.c	Wed Dec 06 11:19:06 2006 +0100
     1.3 @@ -51,6 +51,9 @@
     1.4  	XFreePixmap(dpy, dc.drawable);
     1.5  	XFreeGC(dpy, dc.gc);
     1.6  	XDestroyWindow(dpy, barwin);
     1.7 +	XFreeCursor(dpy, cursor[CurNormal]);
     1.8 +	XFreeCursor(dpy, cursor[CurResize]);
     1.9 +	XFreeCursor(dpy, cursor[CurMove]);
    1.10  	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
    1.11  	XSync(dpy, False);
    1.12  	free(seltag);
    1.13 @@ -104,7 +107,7 @@
    1.14  				numlockmask = (1 << i);
    1.15  		}
    1.16  	}
    1.17 -	XFree(modmap);
    1.18 +	XFreeModifiermap(modmap);
    1.19  	/* select for events */
    1.20  	wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask
    1.21  		| EnterWindowMask | LeaveWindowMask;