Destroy taskbar name after destroying tasks

This commit is contained in:
o9000 2016-10-09 16:36:45 +02:00
parent 1d15c41c1b
commit ce0acdbd5b

View file

@ -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++) {