From f3c82ae09d287c2e581977da74d4927af5aab755 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 25 Feb 2008 11:00:13 +0000 Subject: Fixes #516498 2008-02-25 Chenthill Palanisamy Fixes #516498 * gui/comp-util.c: (cal_comp_is_on_server): * gui/e-calendar-view.c: (e_calendar_view_cut_clipboard), (delete_event), (e_calendar_view_delete_selected_occurrence): * gui/e-day-view.c: (process_component): * gui/e-week-view.c: (process_component): Free memory returned by e_cal_component_get_recurid_as_string. svn path=/trunk/; revision=35086 --- calendar/gui/comp-util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui/comp-util.c') diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c index 07d06a8f19..e1aacc7c9e 100644 --- a/calendar/gui/comp-util.c +++ b/calendar/gui/comp-util.c @@ -207,7 +207,8 @@ cal_comp_util_compare_event_timezones (ECalComponent *comp, gboolean cal_comp_is_on_server (ECalComponent *comp, ECal *client) { - const char *uid, *rid = NULL; + const char *uid; + char *rid = NULL; icalcomponent *icalcomp; GError *error = NULL; @@ -232,6 +233,7 @@ cal_comp_is_on_server (ECalComponent *comp, ECal *client) if (e_cal_get_object (client, uid, rid, &icalcomp, &error)) { icalcomponent_free (icalcomp); + g_free (rid); return TRUE; } @@ -240,6 +242,7 @@ cal_comp_is_on_server (ECalComponent *comp, ECal *client) g_warning (G_STRLOC ": %s", error->message); g_clear_error (&error); + g_free (rid); return FALSE; } -- cgit v1.2.3