]> git.0d.be Git - empathy.git/commitdiff
call: don't leak the contact
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 23 Feb 2012 13:37:11 +0000 (14:37 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 23 Feb 2012 15:21:32 +0000 (16:21 +0100)
src/empathy-call.c

index 45623fcd21a44423f7b68c6adba37a14c0fd2ab4..207f32f2585d6df352b7bc1f19ed743fb5e6c73c 100644 (file)
@@ -119,7 +119,7 @@ new_call_handler_cb (EmpathyCallFactory *factory,
 
   DEBUG ("Show the call window");
 
-  g_object_get (handler, "target-contact", &contact, NULL);
+  contact = empathy_call_handler_get_contact (handler);
 
   window = g_hash_table_lookup (call_windows, contact);