From: Axel Wagner Date: Wed, 26 Jan 2011 00:51:46 +0000 (+0100) Subject: Bugfix: Also free() the head of slist/tailq (Thx dothebart) X-Git-Tag: 4.0.1~7^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9bcc6216c81dafac809b3669b200565e600831b4;p=i3%2Fi3 Bugfix: Also free() the head of slist/tailq (Thx dothebart) --- diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c index 0393071e..89f7757d 100644 --- a/i3bar/src/workspaces.c +++ b/i3bar/src/workspaces.c @@ -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() { diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index f775aad3..e481e314 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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);