fix memory leak on exit

This commit is contained in:
Julien Danjou 2007-12-14 20:18:59 +01:00
parent aacb020564
commit c7c1da5693
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,7 @@ cleanup_screen(awesome_config *awesomeconf, int screen)
for(t = awesomeconf->screens[screen].tags; t; t = tn) for(t = awesomeconf->screens[screen].tags; t; t = tn)
{ {
tn = t; tn = t->next;
p_delete(&t->name); p_delete(&t->name);
p_delete(&t); p_delete(&t);
} }
@ -114,6 +114,8 @@ cleanup(awesome_config *awesomeconf)
rn = r->next; rn = r->next;
p_delete(&r->prop); p_delete(&r->prop);
p_delete(&r->tags); p_delete(&r->tags);
p_delete(&r->propregex);
p_delete(&r->tagregex);
p_delete(&r); p_delete(&r);
} }