diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2008-02-25 19:00:13 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2008-02-25 19:00:13 +0800 |
commit | f3c82ae09d287c2e581977da74d4927af5aab755 (patch) | |
tree | f39241fde810c78b3694d48b9cbf61572218b330 /calendar/gui/comp-util.c | |
parent | 79a8efeece20b718bb0f276fcb5d6a59ac15bd01 (diff) | |
download | gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar.gz gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar.bz2 gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar.lz gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar.xz gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.tar.zst gsoc2013-evolution-f3c82ae09d287c2e581977da74d4927af5aab755.zip |
Fixes #516498
2008-02-25 Chenthill Palanisamy <pchenthill@novell.com>
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
Diffstat (limited to 'calendar/gui/comp-util.c')
-rw-r--r-- | calendar/gui/comp-util.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |