aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-01-14 01:49:28 +0800
committerMilan Crha <mcrha@redhat.com>2011-01-14 01:49:28 +0800
commitc9e2bbbfcf833857b482b62a24143343a8bcc0ea (patch)
treeefcd67f0d616ecb450d4e06300fb7352c01edbfa /calendar
parent03cae7ce78eca27286d375f4205db2c5be4ab380 (diff)
downloadgsoc2013-evolution-c9e2bbbfcf833857b482b62a24143343a8bcc0ea.tar.gz
gsoc2013-evolution-c9e2bbbfcf833857b482b62a24143343a8bcc0ea.tar.zst
gsoc2013-evolution-c9e2bbbfcf833857b482b62a24143343a8bcc0ea.zip
Make sure ECalModelComponent::client is reffed as it should be
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-cal-model.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index f33a6f55c1..752d2ce284 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1317,6 +1317,8 @@ ecm_append_row (ETableModel *etm, ETableModel *source, gint row)
comp_data = g_object_new (E_TYPE_CAL_MODEL_COMPONENT, NULL);
comp_data->client = e_cal_model_get_default_client (model);
+ if (comp_data->client)
+ g_object_ref (comp_data->client);
/* guard against saving before the calendar is open */
if (!(comp_data->client && e_cal_get_load_state (comp_data->client) == E_CAL_LOAD_LOADED)) {