diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-13 03:55:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-13 06:35:12 +0800 |
commit | 08d5bdcf8b8bef913c9ad175927d528ff432332f (patch) | |
tree | 4162aea0f9d0d2837011ddb941263f2556f12947 /modules/calendar/e-task-shell-view-actions.c | |
parent | 1df4952769b3211b90aecb3a359d8ae484fd1363 (diff) | |
download | gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.gz gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.zst gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.zip |
Add e_cal_model_ref_default_client().
Replaces e_cal_model_get_default_client(), which was not thread-safe.
Diffstat (limited to 'modules/calendar/e-task-shell-view-actions.c')
-rw-r--r-- | modules/calendar/e-task-shell-view-actions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c index 0c3ab2e040..5102def69b 100644 --- a/modules/calendar/e-task-shell-view-actions.c +++ b/modules/calendar/e-task-shell-view-actions.c @@ -456,12 +456,12 @@ action_task_new_cb (GtkAction *action, ECalModel *model; model = e_task_table_get_model (task_table); - client = e_cal_model_get_default_client (model); + client = e_cal_model_ref_default_client (model); } else { ECalModelComponent *comp_data; comp_data = list->data; - client = comp_data->client; + client = g_object_ref (comp_data->client); g_slist_free (list); } @@ -474,6 +474,8 @@ action_task_new_cb (GtkAction *action, gtk_window_present (GTK_WINDOW (editor)); g_object_unref (comp); + + g_object_unref (client); } static void |