aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-15 09:37:12 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-15 09:37:12 +0200
commit24d91e3b8a6e173bf65d5dd611b164dcb6a01978 (patch)
tree097e9daa6013e199f2d93e0c59c9ffc8845361ce /main.c
parentce04a665282e4f63d47aa4c4b2f108ebb4fce5e6 (diff)
downloaddwm-24d91e3b8a6e173bf65d5dd611b164dcb6a01978.tar.gz
dwm-24d91e3b8a6e173bf65d5dd611b164dcb6a01978.tar.bz2
dwm-24d91e3b8a6e173bf65d5dd611b164dcb6a01978.zip
extended cleanup
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index d0048be..545efe9 100644
--- a/main.c
+++ b/main.c
@@ -27,7 +27,14 @@ cleanup()
resize(sel, True, TopLeft);
unmanage(sel);
}
+ if(dc.font.set)
+ XFreeFontSet(dpy, dc.font.set);
+ else
+ XFreeFont(dpy, dc.font.xfont);
XUngrabKey(dpy, AnyKey, AnyModifier, root);
+ XDestroyWindow(dpy, barwin);
+ XFreePixmap(dpy, dc.drawable);
+ XFreeGC(dpy, dc.gc);
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
}