Bugfix: Also free() the head of slist/tailq (Thx dothebart)

next
Axel Wagner 2011-01-26 01:51:46 +01:00
parent d9f35859fa
commit dc7cfeaa4f
2 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void parse_workspaces_json(char *json) {
}
/*
* free() all workspace data-structures
* free() all workspace data-structures. Does not free() the heads of the tailqueues.
*
*/
void free_workspaces() {

View File

@ -585,8 +585,10 @@ void clean_xcb() {
SLIST_FOREACH(o_walk, outputs, slist) {
destroy_window(o_walk);
FREE_TAILQ(o_walk->workspaces, i3_ws);
FREE(o_walk->workspaces);
}
FREE_SLIST(outputs, i3_output);
FREE(outputs);
xcb_disconnect(xcb_connection);