aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-19 21:42:42 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-19 21:45:53 +0800
commit0da8cbd3fe50e4eba859f93600a4da9c07ea751c (patch)
treea915109fcf22526f2d7ab8f1a6b9c90d7cff2fa8 /src
parent95580f110cf428940866d348447cee18062a468d (diff)
downloadgsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar.gz
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar.bz2
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar.lz
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar.xz
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.tar.zst
gsoc2013-empathy-0da8cbd3fe50e4eba859f93600a4da9c07ea751c.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c2
1 files changed, 1 insertions, 1 deletions
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);
}