svn path=/trunk/; revision=2211
EmpathyContactFactory *factory;
EmpathyContact *contact;
- factory = empathy_contact_factory_new ();
+ factory = empathy_contact_factory_dup_singleton ();
contact = empathy_contact_factory_get_from_id (factory, account, id);
empathy_start_call_with_contact (contact);
if (handle_type == TP_CONN_HANDLE_TYPE_CONTACT)
{
- EmpathyContactFactory *factory = empathy_contact_factory_new ();
+ EmpathyContactFactory *factory = empathy_contact_factory_dup_singleton ();
contact = empathy_contact_factory_get_from_handle (factory,
cd->account, handle);
g_object_unref (factory);
if (handle_type != TP_HANDLE_TYPE_CONTACT)
return;
- factory = empathy_contact_factory_new ();
+ factory = empathy_contact_factory_dup_singleton ();
account = empathy_channel_get_account (channel);
contact = empathy_contact_factory_get_from_handle (factory, account,