From ce0acdbd5b492c8311805e3f2d8d1601bb77fef8 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 9 Oct 2016 16:36:45 +0200 Subject: [PATCH] Destroy taskbar name after destroying tasks --- src/taskbar/taskbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taskbar/taskbar.c b/src/taskbar/taskbar.c index ef1b70a..b1e51fd 100644 --- a/src/taskbar/taskbar.c +++ b/src/taskbar/taskbar.c @@ -85,7 +85,6 @@ void default_taskbar() void cleanup_taskbar() { - cleanup_taskbarname(); if (win_to_task) { while (g_hash_table_size(win_to_task)) { GHashTableIter iter; @@ -99,6 +98,7 @@ void cleanup_taskbar() g_hash_table_destroy(win_to_task); win_to_task = NULL; } + cleanup_taskbarname(); for (int i = 0; i < num_panels; i++) { Panel *panel = &panels[i]; for (int j = 0; j < panel->num_desktops; j++) {