From 0da8cbd3fe50e4eba859f93600a4da9c07ea751c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 19 Oct 2009 14:42:42 +0100 Subject: empathy_call_window_setup_avatars: pass a weak object to empathy_tp_contact_factory_get_from_handle 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 939263492..0644a1443 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -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); } -- cgit v1.2.3