From c7c1da569302d4ffe87e2abc0778f847a2addda3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Dec 2007 20:18:59 +0100 Subject: [PATCH] fix memory leak on exit --- awesome.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awesome.c b/awesome.c index 3b9137f4..4cdd2947 100644 --- a/awesome.c +++ b/awesome.c @@ -76,7 +76,7 @@ cleanup_screen(awesome_config *awesomeconf, int screen) for(t = awesomeconf->screens[screen].tags; t; t = tn) { - tn = t; + tn = t->next; p_delete(&t->name); p_delete(&t); } @@ -114,6 +114,8 @@ cleanup(awesome_config *awesomeconf) rn = r->next; p_delete(&r->prop); p_delete(&r->tags); + p_delete(&r->propregex); + p_delete(&r->tagregex); p_delete(&r); }