evolution-data-server r8982 - trunk/servers/groupwise



Author: abharath
Date: Mon Jun 16 03:43:04 2008
New Revision: 8982
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8982&view=rev

Log:
Committing on behalf of  Chenthill Palanisamy  <pchenthill novell com>

2008-06-16  Chenthill Palanisamy  <pchenthill novell com>

        ** Fixes #394654 (bnc)

         * e-gw-item.c: (e_gw_item_init), (set_contact_fields_from_soap_parameter),
         (set_organization_fields_from_soap_parameter): Fixes a EDS crasher.


Modified:
   trunk/servers/groupwise/ChangeLog
   trunk/servers/groupwise/e-gw-item.c

Modified: trunk/servers/groupwise/e-gw-item.c
==============================================================================
--- trunk/servers/groupwise/e-gw-item.c	(original)
+++ trunk/servers/groupwise/e-gw-item.c	Mon Jun 16 03:43:04 2008
@@ -543,7 +543,7 @@
 	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 @@
 				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 @@
 	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);
 
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]