Commit fd9eeca3 authored by Thomas Haller's avatar Thomas Haller

device: fix leaking GSList element in _replace_vpn_config_in_list()

Fixes: 9bbf5e94
parent 639f2d4b
......@@ -7937,7 +7937,7 @@ _replace_vpn_config_in_list (GSList **plist, GObject *old, GObject *new)
if (new)
old_link->data = g_object_ref (new);
*plist = g_slist_remove_link (*plist, old_link);
*plist = g_slist_delete_link (*plist, old_link);
g_object_unref (old);
return TRUE;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment