evolution-data-server r8959 - branches/camel-db-summary/camel



Author: psankar
Date: Mon Jun  9 11:32:24 2008
New Revision: 8959
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8959&view=rev

Log:
Dont free uid and try removing from hashtable when there is no uid


Modified:
   branches/camel-db-summary/camel/camel-folder-summary.c

Modified: branches/camel-db-summary/camel/camel-folder-summary.c
==============================================================================
--- branches/camel-db-summary/camel/camel-folder-summary.c	(original)
+++ branches/camel-db-summary/camel/camel-folder-summary.c	Mon Jun  9 11:32:24 2008
@@ -2692,9 +2692,11 @@
 message_info_free(CamelFolderSummary *s, CamelMessageInfo *info)
 {
 	CamelMessageInfoBase *mi = (CamelMessageInfoBase *)info;
-
-	g_hash_table_remove (s->loaded_infos, mi->uid);
-	g_free(mi->uid);
+	
+	if (mi->uid) {
+		g_hash_table_remove (s->loaded_infos, mi->uid);
+		g_free(mi->uid);
+	} 
 	camel_pstring_free(mi->subject);
 	camel_pstring_free(mi->from);
 	camel_pstring_free(mi->to);



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