]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-list.c
[darcs-to-svn @ Connect accounts in empathy-launcher, not in empathy-contact-list]
[empathy.git] / libempathy / empathy-contact-list.c
index 02d0c174d0f7e209a00da8da3bb6131a94cd3825..1a86400267c88b815ad7ecacabf00965ba0360e7 100644 (file)
@@ -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);