aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-view-private.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-13 03:55:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-13 06:35:12 +0800
commit08d5bdcf8b8bef913c9ad175927d528ff432332f (patch)
tree4162aea0f9d0d2837011ddb941263f2556f12947 /modules/calendar/e-memo-shell-view-private.c
parent1df4952769b3211b90aecb3a359d8ae484fd1363 (diff)
downloadgsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.gz
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.bz2
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.lz
gsoc2013-evolution-08d5bdcf8b8bef913c9ad175927d528ff432332f.tar.xz
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-memo-shell-view-private.c')
-rw-r--r--modules/calendar/e-memo-shell-view-private.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/calendar/e-memo-shell-view-private.c b/modules/calendar/e-memo-shell-view-private.c
index 50b9e5f8aa..a84a44134d 100644
--- a/modules/calendar/e-memo-shell-view-private.c
+++ b/modules/calendar/e-memo-shell-view-private.c
@@ -37,11 +37,13 @@ memo_shell_view_model_row_appended_cb (EMemoShellView *memo_shell_view,
/* This is the "Click to Add" handler. */
- client = e_cal_model_get_default_client (model);
+ client = e_cal_model_ref_default_client (model);
source = e_client_get_source (E_CLIENT (client));
memo_shell_sidebar = memo_shell_view->priv->memo_shell_sidebar;
e_memo_shell_sidebar_add_source (memo_shell_sidebar, source);
+
+ g_object_unref (client);
}
static void