[gupnp] White List: Fix remove entry function
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] White List: Fix remove entry function
- Date: Tue, 20 Aug 2013 08:08:20 +0000 (UTC)
commit 84512d8d3bc1f682ef94cbf84e9b6563b613e937
Author: Ludovic Ferrandis <ludovic ferrandis intel com>
Date: Mon Aug 19 18:17:12 2013 +0200
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
libgupnp/gupnp-white-list.c | 3 ++-
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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]