From a7c1e6c502cdc834617c59d157a3b787a5e8b0c7 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 22 Mar 2011 15:23:46 -0500 Subject: Remove the link instead of the data --- libdbusmenu-glib/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 018508c..825f3cb 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1382,7 +1382,7 @@ menuitem_get_properties_replace_cb (GVariant * properties, GError * error, gpoin while (g_variant_iter_loop(&iter, "{sv}", &name, &value) && have_error == FALSE) { for (tmp = current_props; tmp != NULL; tmp = g_list_next(tmp)) { if (g_strcmp0((gchar *)tmp->data, name) == 0) { - current_props = g_list_remove(current_props, tmp); + current_props = g_list_delete_link(current_props, tmp); break; } } -- cgit v1.2.3