[evolution-ews] Fix possible memory leak in get_meeting_cancellation_comment
- From: Pavel Ocheretny <pocheretny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix possible memory leak in get_meeting_cancellation_comment
- Date: Mon, 22 Aug 2011 09:43:16 +0000 (UTC)
commit 2fc79ea25a2a10d0789688d9e36ef9c6578bdb74
Author: Pavel Ocheretny <pavel ocheretny intel com>
Date: Mon Aug 22 12:37:54 2011 +0300
Fix possible memory leak in get_meeting_cancellation_comment
src/calendar/e-cal-backend-ews.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index eb5b7af..49e396a 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -2407,10 +2407,8 @@ e_cal_get_meeting_cancellation_comment (ECalComponent *comp)
const gchar *x_name, *x_val;
x_name = icalproperty_get_x_name (prop);
x_val = icalproperty_get_x (prop);
- if (!g_ascii_strcasecmp (x_name, "X-EVOLUTION-RETRACT-COMMENT")) {
- return g_strdup (x_val);
- break;
- }
+ if (!g_ascii_strcasecmp (x_name, "X-EVOLUTION-RETRACT-COMMENT"))
+ return x_val;
prop = icalcomponent_get_next_property (e_cal_component_get_icalcomponent (comp),
ICAL_X_PROPERTY);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]