[evolution-mapi/gnome-2-28] Bug #600394 - Return also UID when creating a new event



commit 6b3a9149dc3a4f9878493835219ef0c150e6a813
Author: Milan Crha <mcrha redhat com>
Date:   Wed Nov 4 17:17:33 2009 +0100

    Bug #600394 - Return also UID when creating a new event

 src/calendar/e-cal-backend-mapi.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index adf7d3c..b94493e 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -1398,7 +1398,10 @@ e_cal_backend_mapi_create_object (ECalBackendSync *backend, EDataCal *cal, char
 
 			tmp = exchange_mapi_util_mapi_id_to_string (mid);
 			e_cal_component_set_uid (comp, tmp);
-			g_free (tmp);
+			if (uid)
+				*uid = tmp;
+			else
+				g_free (tmp);
 
 			e_cal_component_commit_sequence (comp);
 			e_cal_backend_cache_put_component (priv->cache, comp);



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