X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=chat%2Fempathy-chat-main.c;h=864e506b7aefadeda0b0267b54223c776836306b;hp=36cf3850b607dce6aa3d657876c0261542a0947b;hb=90c1acfbd86f4033550637364fabfacb09b8bb1c;hpb=69c88650b1c505b0883073fe60a0cbcffc64dc70 diff --git a/chat/empathy-chat-main.c b/chat/empathy-chat-main.c index 36cf3850..864e506b 100644 --- a/chat/empathy-chat-main.c +++ b/chat/empathy-chat-main.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -57,7 +58,7 @@ new_channel_cb (EmpathyChandler *chandler, GossipPrivateChat *chat; /* We have a private chat channel */ - mc = empathy_session_get_mission_control (); + mc = mission_control_new (tp_get_bus ()); account = mission_control_get_account_for_connection (mc, tp_conn, NULL); manager = empathy_session_get_contact_manager (); list = empathy_contact_manager_get_list (manager, account); @@ -66,6 +67,7 @@ new_channel_cb (EmpathyChandler *chandler, chat = gossip_private_chat_new_with_channel (contact, tp_chan); gossip_chat_present (GOSSIP_CHAT (chat)); + g_object_unref (mc); g_object_unref (account); g_object_unref (contact); g_object_unref (chat);