summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Ferrandis <ludovic.ferrandis@intel.com>2013-08-19 18:17:12 +0200
committerJens Georg <mail@jensge.org>2013-08-20 10:05:55 +0200
commit84512d8d3bc1f682ef94cbf84e9b6563b613e937 (patch)
tree6fd8f280ec6d255f6a19671ad23fa35774d70b9e
parentd07be39e8b23cb26904d7d37c5cc7e03f00c3bab (diff)
downloadgupnp-84512d8d3bc1f682ef94cbf84e9b6563b613e937.tar.gz
White List: Fix remove entry function
Remove the GList element found by g_list_find_custom. https://bugzilla.gnome.org/show_bug.cgi?id=706326
-rw-r--r--libgupnp/gupnp-white-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgupnp/gupnp-white-list.c b/libgupnp/gupnp-white-list.c
index 860937d..599bd2e 100644
--- a/libgupnp/gupnp-white-list.c
+++ b/libgupnp/gupnp-white-list.c
@@ -296,7 +296,8 @@ gupnp_white_list_remove_entry (GUPnPWhiteList *white_list, gchar* entry)
(GCompareFunc) g_ascii_strcasecmp);
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");
}