evolution r35087 - trunk/plugins/itip-formatter



Author: pchen
Date: Mon Feb 25 11:00:58 2008
New Revision: 35087
URL: http://svn.gnome.org/viewvc/evolution?rev=35087&view=rev

Log:
2008-02-25  Chenthill Palanisamy  <pchenthill novell com>

        * itip-formatter.c: (find_server), (update_attendee_status):
        * Free the 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	Mon Feb 25 11:00:58 2008
@@ -723,7 +723,7 @@
 	FormatItipFindData *fd = NULL;
 	GSList *groups, *l, *sources_conflict = NULL, *all_sources = NULL;
 	const char *uid;
-	const char *rid;
+	char *rid = NULL;
 	CamelURL *url;
 	char *uri;
 	ESource *source = NULL, *current_source = NULL;
@@ -789,7 +789,7 @@
 			fd = g_new0 (FormatItipFindData, 1);
 			fd->puri = pitip;
 			fd->uid = g_strdup (uid);
-			fd->rid = g_strdup (rid);
+			fd->rid = rid;
 
 			if (pitip->start_time && pitip->end_time) {
 				start = isodate_from_time_t (pitip->start_time);
@@ -1138,7 +1138,8 @@
 {
 	ECalComponent *comp = NULL;
 	icalcomponent *icalcomp = NULL, *org_icalcomp;
-	const char *uid, *rid;
+	const char *uid;
+	char *rid = NULL;
 	const char *delegate;
 	GError *error = NULL;
 
@@ -1253,6 +1254,7 @@
  cleanup:
 	if (comp != NULL)
 		g_object_unref (comp);
+	g_free (rid);
 }
 
 static void



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