]> git.0d.be Git - empathy.git/commitdiff
empathy_call_window_setup_avatars: pass a weak object to empathy_tp_contact_factory_g...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 19 Oct 2009 13:42:42 +0000 (14:42 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 19 Oct 2009 13:45:53 +0000 (14:45 +0100)
Pass the call window as weak object to
empathy_tp_contact_factory_get_from_handle so the callback won't be
called if the window is destroyed (#598453).

src/empathy-call-window.c

index 939263492395d1bd500ed1e7601f3cd463471f41..0644a1443c6a6237f6f870aad8bd49a56465b49f 100644 (file)
@@ -943,7 +943,7 @@ empathy_call_window_setup_avatars (EmpathyCallWindow *self,
       factory = empathy_tp_contact_factory_dup_singleton (connection);
       empathy_tp_contact_factory_get_from_handle (factory,
           tp_connection_get_self_handle (connection),
-          empathy_call_window_got_self_contact_cb, self, NULL, NULL);
+          empathy_call_window_got_self_contact_cb, self, NULL, G_OBJECT (self));
 
       g_object_unref (factory);
     }