[evolution-ews] Prevent double allocation of memory for the same string



commit 2d325893a6bc9f1a1fe2911eef960481501bc906
Author: Or Goshen <orx goshen intel com>
Date:   Thu Aug 25 15:38:33 2011 +0300

    Prevent double allocation of memory for the same string

 src/calendar/e-cal-backend-ews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 1ec5400..9ff04b8 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -587,7 +587,7 @@ ews_cal_component_get_item_id (ECalComponent *comp, gchar **itemid, gchar **chan
 							ICAL_X_PROPERTY);
 	}
 
-	*itemid = g_strdup (id);
+	*itemid = id;
 	if (changekey)
 		*changekey = ck;
 }



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