diff options
author | Milan Crha <mcrha@redhat.com> | 2011-01-14 01:49:28 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:18 +0800 |
commit | 23860a5b41065351f3c5e252a23dfc9e5a4e7a84 (patch) | |
tree | a70f2b4467d0e9883b8d67918541fe44905676a4 | |
parent | ce42886ebccdfe9b7ee2b5f36c9f68220e478bf2 (diff) | |
download | gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar.gz gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar.bz2 gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar.lz gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar.xz gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.tar.zst gsoc2013-evolution-23860a5b41065351f3c5e252a23dfc9e5a4e7a84.zip |
Make sure ECalModelComponent::client is reffed as it should be
-rw-r--r-- | 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 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)) { |