]> git.0d.be Git - empathy.git/commitdiff
ft-handler: contact_factory_contact_cb: ref the contact
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 Nov 2009 11:09:29 +0000 (11:09 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 23 Nov 2009 11:33:17 +0000 (12:33 +0100)
empathy_tp_contact_factory_get_from_handle is not supposed to give a reference
to the callback.

libempathy/empathy-ft-handler.c

index b05da94aa7c942a8e06b16b31ad8e686f4e1d8e6..7c8033d846d4e4cba92a9f60966015505574d9e3 100644 (file)
@@ -1219,7 +1219,7 @@ contact_factory_contact_cb (EmpathyTpContactFactory *factory,
       return;
     }
 
-  priv->contact = contact;
+  priv->contact = g_object_ref (contact);
 
   cb_data->callback (handler, NULL, cb_data->user_data);
 }