evolution-data-server/bnc-394654-eds-crasher.patch

32 lines
1.4 KiB
Diff

Index: servers/groupwise/e-gw-item.c
===================================================================
--- servers/groupwise/e-gw-item.c (revision 8803)
+++ servers/groupwise/e-gw-item.c (working copy)
@@ -543,7 +543,7 @@ e_gw_item_init (EGwItem *item, EGwItemCl
priv->attach_list = NULL ;
priv->simple_fields = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_free);
priv->full_name = g_new0(FullName, 1);
- priv->addresses = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, free_postal_address);
+ priv->addresses = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, free_postal_address);
priv->additions = g_hash_table_new(g_str_hash, g_str_equal);
priv->updates = g_hash_table_new (g_str_hash, g_str_equal);
priv->deletions = g_hash_table_new (g_str_hash, g_str_equal);
@@ -1277,7 +1277,7 @@ set_contact_fields_from_soap_parameter (
add = "Other";
if (value)
- g_hash_table_insert (item->priv->addresses, (char*)add, address);
+ g_hash_table_insert (item->priv->addresses, (char *) add, address);
else
free_postal_address (address);
g_free (value);
@@ -1411,7 +1411,7 @@ set_organization_fields_from_soap_parame
if (subparam) {
address = g_new0 (PostalAddress, 1);
set_postal_address_from_soap_parameter (address, subparam);
- g_hash_table_insert (item->priv->addresses, g_strdup ("Office"), address);
+ g_hash_table_insert (item->priv->addresses, "Office", address);
}