diff options
Diffstat (limited to 'modules/calendar/e-memo-shell-view-actions.c')
-rw-r--r-- | modules/calendar/e-memo-shell-view-actions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c index 5e30e24fcf..f0c16bb99a 100644 --- a/modules/calendar/e-memo-shell-view-actions.c +++ b/modules/calendar/e-memo-shell-view-actions.c @@ -387,12 +387,12 @@ action_memo_new_cb (GtkAction *action, ECalModel *model; model = e_memo_table_get_model (memo_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); } @@ -406,6 +406,8 @@ action_memo_new_cb (GtkAction *action, gtk_window_present (GTK_WINDOW (editor)); g_object_unref (comp); + + g_object_unref (client); } static void |