all repos — tint2 @ b1374f0cb89c13349f9602042d04844d630f2123

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

execp: Fix segfault
o9000 mrovi9000@gmail.com
commit

b1374f0cb89c13349f9602042d04844d630f2123

parent

c125e73402c5ecc44196f8335dcc663952e8e310

1 files changed, 11 insertions(+), 6 deletions(-)

jump to
M src/execplugin/execplugin.csrc/execplugin/execplugin.c

@@ -109,12 +109,17 @@ }

} if (to_remove) { - // Cut panel_config.execp_list - if (to_remove->prev) - to_remove->prev->next = NULL; - to_remove->prev = NULL; - // Remove all elements of to_remove and to_remove itself - g_list_free_full(to_remove, destroy_execp); + if (to_remove == panel_config.execp_list) { + g_list_free_full(to_remove, destroy_execp); + panel_config.execp_list = NULL; + } else { + // Cut panel_config.execp_list + if (to_remove->prev) + to_remove->prev->next = NULL; + to_remove->prev = NULL; + // Remove all elements of to_remove and to_remove itself + g_list_free_full(to_remove, destroy_execp); + } } for (GList *l = panel_config.execp_list; l; l = l->next) {