From 8aaf6865026ead0f21a233a2897a89a7de332f5d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 1 May 2007 12:18:26 +0000 Subject: [darcs-to-svn @ Connect accounts in empathy-launcher, not in empathy-contact-list] svn path=/trunk/; revision=14 --- libempathy/empathy-contact-list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-contact-list.c') diff --git a/libempathy/empathy-contact-list.c b/libempathy/empathy-contact-list.c index 02d0c174d..1a8640026 100644 --- a/libempathy/empathy-contact-list.c +++ b/libempathy/empathy-contact-list.c @@ -312,7 +312,7 @@ empathy_contact_list_new (McAccount *account) g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL); - mc = empathy_session_get_mission_control (); + mc = mission_control_new (tp_get_bus ()); if (mission_control_get_connection_status (mc, account, NULL) != 0) { /* The account is not connected, nothing to do. */ @@ -320,6 +320,7 @@ empathy_contact_list_new (McAccount *account) } tp_conn = mission_control_get_connection (mc, account, NULL); + g_object_unref (mc); g_return_val_if_fail (tp_conn != NULL, NULL); list = g_object_new (EMPATHY_TYPE_CONTACT_LIST, NULL); -- cgit v1.2.3