[evolution-data-server] e_cal_component_free_id() cleanups.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] e_cal_component_free_id() cleanups.
- Date: Thu, 14 Mar 2013 18:51:36 +0000 (UTC)
commit bde3cb16306f465f3a4ce93bad8d58750dc06f82
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Mar 14 14:50:43 2013 -0400
e_cal_component_free_id() cleanups.
calendar/libecal/e-cal-component.c | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/calendar/libecal/e-cal-component.c b/calendar/libecal/e-cal-component.c
index 1544db2..1243f80 100644
--- a/calendar/libecal/e-cal-component.c
+++ b/calendar/libecal/e-cal-component.c
@@ -5180,24 +5180,17 @@ e_cal_component_free_sequence (gint *sequence)
/**
* e_cal_component_free_id:
- * @id: Component ID
+ * @id: an #ECalComponentId
*
- * Frees the id.
+ * Frees the @id.
**/
void
e_cal_component_free_id (ECalComponentId *id)
{
g_return_if_fail (id != NULL);
- if (id->uid) {
- g_free (id->uid);
- id->uid = NULL;
- }
-
- if (id->rid) {
- g_free (id->rid);
- id->rid = NULL;
- }
+ g_free (id->uid);
+ g_free (id->rid);
g_free (id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]