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



Author: psankar
Date: Wed Jun  4 06:29:37 2008
New Revision: 8907
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8907&view=rev

Log:
Fix the leaking messageinforecords


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	Wed Jun  4 06:29:37 2008
@@ -853,13 +853,18 @@
 		if (mir && s->build_content) {
 			if (perform_content_info_save_to_db (s, ((CamelMessageInfoBase *)mi)->content, mir) == -1) {
 				g_warning ("unable to save mir+cinfo for uid: %s\n", mir->uid);
+				g_free (mir);
 				/* FIXME: Add exception here */
 				return -1;
 			}
 		}
 
-		if (camel_db_write_message_info_record (cdb, folder_name, mir, ex) != 0)
+		if (camel_db_write_message_info_record (cdb, folder_name, mir, ex) != 0) {
+			g_free (mir);
 			return -1;
+		}
+
+		g_free (mir);
 	}	
 	return 0;
 }



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