evolution r35532 - in branches/gnome-2-22/calendar: . conduits/calendar gui
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35532 - in branches/gnome-2-22/calendar: . conduits/calendar gui
- Date: Fri, 23 May 2008 11:17:05 +0000 (UTC)
Author: msuman
Date: Fri May 23 11:17:05 2008
New Revision: 35532
URL: http://svn.gnome.org/viewvc/evolution?rev=35532&view=rev
Log:
Patch from Milan Crha <mcrha redhat com> ** Part of fix for bug #523402 (leak fix, reassign back the old values before freeing)
Modified:
branches/gnome-2-22/calendar/ChangeLog
branches/gnome-2-22/calendar/conduits/calendar/calendar-conduit.c
branches/gnome-2-22/calendar/gui/e-calendar-view.c
Modified: branches/gnome-2-22/calendar/conduits/calendar/calendar-conduit.c
==============================================================================
--- branches/gnome-2-22/calendar/conduits/calendar/calendar-conduit.c (original)
+++ branches/gnome-2-22/calendar/conduits/calendar/calendar-conduit.c Fri May 23 11:17:05 2008
@@ -709,6 +709,8 @@
ret = FALSE;
g_free (new_uid);
g_object_unref (clone);
+ dt_start.value = old_start_value;
+ dt_end.value = old_end_value;
goto cleanup;
}
Modified: branches/gnome-2-22/calendar/gui/e-calendar-view.c
==============================================================================
--- branches/gnome-2-22/calendar/gui/e-calendar-view.c (original)
+++ branches/gnome-2-22/calendar/gui/e-calendar-view.c Fri May 23 11:17:05 2008
@@ -364,12 +364,14 @@
/* set the timezone properly */
e_cal_component_get_dtstart (comp, &dt);
+ g_free ((char *) dt.tzid);
dt.tzid = icaltimezone_get_tzid (default_zone);
e_cal_component_set_dtstart (comp, &dt);
dt.tzid = NULL;
e_cal_component_free_datetime (&dt);
e_cal_component_get_dtend (comp, &dt);
+ g_free ((char *) dt.tzid);
dt.tzid = icaltimezone_get_tzid (default_zone);
e_cal_component_set_dtend (comp, &dt);
dt.tzid = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]