summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar-items.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r--src/fe-text/statusbar-items.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c
index 9df76b73..fd10c315 100644
--- a/src/fe-text/statusbar-items.c
+++ b/src/fe-text/statusbar-items.c
@@ -216,10 +216,13 @@ static void sig_statusbar_activity_hilight(WINDOW_REC *window, gpointer oldlevel
static void sig_statusbar_activity_window_destroyed(WINDOW_REC *window)
{
+ GList *node;
+
g_return_if_fail(window != NULL);
- if (g_list_find(activity_list, window) != NULL)
- activity_list = g_list_remove(activity_list, window);
+ node = g_list_find(activity_list, window);
+ if (node != NULL)
+ activity_list = g_list_delete_link(activity_list, node);
statusbar_items_redraw("act");
}