evolution r35275 - trunk/plugins/itip-formatter



Author: mcrha
Date: Thu Mar 27 13:08:06 2008
New Revision: 35275
URL: http://svn.gnome.org/viewvc/evolution?rev=35275&view=rev

Log:
2008-03-27  Milan Crha  <mcrha redhat com>

	** Fix for bug #523541

	* itip-formatter.c: (find_server):
	Do not leak memory returned by e_cal_component_get_recurid_as_string.



Modified:
   trunk/plugins/itip-formatter/ChangeLog
   trunk/plugins/itip-formatter/itip-formatter.c

Modified: trunk/plugins/itip-formatter/itip-formatter.c
==============================================================================
--- trunk/plugins/itip-formatter/itip-formatter.c	(original)
+++ trunk/plugins/itip-formatter/itip-formatter.c	Thu Mar 27 13:08:06 2008
@@ -790,6 +790,8 @@
 			fd->puri = pitip;
 			fd->uid = g_strdup (uid);
 			fd->rid = rid;
+			/* avoid free this at the end */
+			rid = NULL;
 
 			if (pitip->start_time && pitip->end_time) {
 				start = isodate_from_time_t (pitip->start_time);
@@ -815,6 +817,7 @@
 	g_slist_free (all_sources);
 	g_slist_free (sources_conflict);
 	g_free (uri);
+	g_free (rid);
 }
 
 static void



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