From d06785f5996e6a4e7ac4d8e2493138f8f33fcf4e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Sep 2007 14:03:51 +0200 Subject: [PATCH] delete conf+elem and dc on cleanup --- awesome.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/awesome.c b/awesome.c index cc4f3f89f..e1b4b66d2 100644 --- a/awesome.c +++ b/awesome.c @@ -78,9 +78,18 @@ cleanup(Display *disp, DC *drawcontext, awesome_config *awesomeconf) XFreeCursor(disp, drawcontext[screen].cursor[CurNormal]); XFreeCursor(disp, drawcontext[screen].cursor[CurResize]); XFreeCursor(disp, drawcontext[screen].cursor[CurMove]); + p_delete(&awesomeconf[screen].tags); + p_delete(&awesomeconf[screen].selected_tags); + p_delete(&awesomeconf[screen].prev_selected_tags); + p_delete(&awesomeconf[screen].tag_layouts); + p_delete(&awesomeconf[screen].layouts); + p_delete(&awesomeconf[screen].rules); + p_delete(&awesomeconf[screen].keys); } XSetInputFocus(disp, PointerRoot, RevertToPointerRoot, CurrentTime); XSync(disp, False); + p_delete(&awesomeconf); + p_delete(&dc); } static long