[evolution/webkit] Make sure ECalModelComponent::client is reffed as it should be
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Make sure ECalModelComponent::client is reffed as it should be
- Date: Mon, 11 Jul 2011 14:01:44 +0000 (UTC)
commit b9b6b7f5274dd15680b1909eed23889be7687635
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 13 18:49:28 2011 +0100
Make sure ECalModelComponent::client is reffed as it should be
calendar/gui/e-cal-model.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index f33a6f5..752d2ce 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)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]