aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-04-27 18:07:09 +0800
committerMilan Crha <mcrha@redhat.com>2009-04-27 18:07:09 +0800
commitb29f1ed5e653974acf983f211901139d0f76cf12 (patch)
tree2ce4ece0fe5dd73586a896ecf0d16e2be2f1c6ac /calendar/conduits
parentc8938bd337a03f1d4221cabfff76add54af9aa76 (diff)
downloadgsoc2013-evolution-b29f1ed5e653974acf983f211901139d0f76cf12.tar.gz
gsoc2013-evolution-b29f1ed5e653974acf983f211901139d0f76cf12.tar.zst
gsoc2013-evolution-b29f1ed5e653974acf983f211901139d0f76cf12.zip
Allow Last Modified and Created columns for event table
** Fix for bug #575773 * gui/e-calendar-table.etspec: * gui/e-cal-list-view.etspec: * gui/e-memo-table.etspec: * gui/e-cal-model.h: (ECalModelField), (struct _ECalModelComponent): * gui/e-cal-model.c: (get_datetime_from_utc), (ecm_value_at), (ecm_duplicate_value), (ecm_free_value), (ecm_initialize_value), (ecm_value_is_empty), (ecm_value_to_string), (e_cal_view_objects_modified_cb), (e_cal_model_component_finalize), (e_cal_model_component_init): Allow showing CREATED and LAST-MODIFIED properties in a table. * gui/print.c: (print_comp_draw_real): * gui/e-cal-component-preview.c: (write_html): * conduits/todo/todo-conduit.c: (local_record_from_comp): Possible leak fix.
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/todo/todo-conduit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 0b9d1505b9..620e9ec6f0 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -764,12 +764,13 @@ local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoCondu
local->todo->priority = 4;
else
local->todo->priority = 5;
-
- e_cal_component_free_priority (priority);
} else {
local->todo->priority = ctxt->cfg->priority;
}
+ if (priority)
+ e_cal_component_free_priority (priority);
+
e_cal_component_get_classification (comp, &classif);
if (classif == E_CAL_COMPONENT_CLASS_PRIVATE)