From 31863efc043c3f1a66b861af402013f86d3d26c2 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Wed, 26 Jan 2011 00:34:15 +0100 Subject: [PATCH] Bugfix: free() workspace-names seperately (thx dothebart) --- i3bar/src/workspaces.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c index a28ed2be..0393071e 100644 --- a/i3bar/src/workspaces.c +++ b/i3bar/src/workspaces.c @@ -258,8 +258,14 @@ void free_workspaces() { if (outputs == NULL) { return; } + i3_ws *ws_walk; + SLIST_FOREACH(outputs_walk, outputs, slist) { if (outputs_walk->workspaces != NULL && !TAILQ_EMPTY(outputs_walk->workspaces)) { + TAILQ_FOREACH(ws_walk, outputs_walk->workspaces, tailq) { + FREE(ws_walk->name); + FREE(ws_walk->ucs2_name); + } FREE_TAILQ(outputs_walk->workspaces, i3_ws); } } -- 2.39.5