From 24d91e3b8a6e173bf65d5dd611b164dcb6a01978 Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Tue, 15 Aug 2006 09:37:12 +0200 Subject: extended cleanup --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.c') 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); } -- cgit v1.2.3-13-gbd6f