]> git.meshlink.io Git - catta/commitdiff
Remove entries from the GaEntryGroupService entry hashed using GaEntryGroupServiceEnt...
authorSjoerd Simons <sjoerd@debian.org>
Fri, 13 Jun 2008 11:11:49 +0000 (11:11 +0000)
committerSjoerd Simons <sjoerd@debian.org>
Fri, 13 Jun 2008 11:11:49 +0000 (11:11 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1784 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-gobject/ga-entry-group.c

index cfe12f60ccbf9c83c4ebe88e2f13d35eed867b07..c4f2e3766f724dc10a6da81a2b7292a55b9af734 100644 (file)
@@ -556,8 +556,12 @@ gboolean ga_entry_group_service_set_arbitrary(GaEntryGroupService * service,
 gboolean ga_entry_group_service_remove_key(GaEntryGroupService * service,
                                   const gchar * key, GError ** error) {
     GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service;
+    GaEntryGroupServiceEntry entry;
 
-    g_hash_table_remove(priv->entries, key);
+    entry.value = key;
+    entry.size = strlen(key);
+
+    g_hash_table_remove(priv->entries, &entry);
 
     if (!priv->frozen)
         return ga_entry_group_service_thaw(service, error);