Commit 84512d8d authored by Ludovic Ferrandis's avatar Ludovic Ferrandis Committed by Jens Georg
Browse files

White List: Fix remove entry function

Remove the GList element found by g_list_find_custom.
parent d07be39e
...@@ -296,7 +296,8 @@ gupnp_white_list_remove_entry (GUPnPWhiteList *white_list, gchar* entry) ...@@ -296,7 +296,8 @@ gupnp_white_list_remove_entry (GUPnPWhiteList *white_list, gchar* entry)
(GCompareFunc) g_ascii_strcasecmp); (GCompareFunc) g_ascii_strcasecmp);
if (s_entry != NULL) { if (s_entry != NULL) {
priv->entries = g_list_remove (priv->entries, entry); priv->entries = g_list_remove_link (priv->entries, s_entry);
g_list_free_full (s_entry, g_free);
g_object_notify (G_OBJECT (white_list), "entries"); g_object_notify (G_OBJECT (white_list), "entries");
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment