X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=avahi-gobject%2Fga-entry-group.c;h=c4f2e3766f724dc10a6da81a2b7292a55b9af734;hb=17a87e365175dac3682735710522695b7e5a6bdc;hp=1a17fd42f4a36d53fc2c25b9372f93407f9bf9de;hpb=58ee9d8c85293eefa1e901c660fb30bf2b9122c8;p=catta diff --git a/avahi-gobject/ga-entry-group.c b/avahi-gobject/ga-entry-group.c index 1a17fd4..c4f2e37 100644 --- a/avahi-gobject/ga-entry-group.c +++ b/avahi-gobject/ga-entry-group.c @@ -1,6 +1,6 @@ /* * ga-entry-group.c - Source for GaEntryGroup - * Copyright (C) 2005 Collabora Ltd. + * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -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);