From 440dc828a0033f19deec7ba2c7a972e0f025415c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 26 Feb 2008 13:31:28 +0000 Subject: Cancel name owner watch when the call is finalized svn path=/trunk/; revision=672 --- libempathy/empathy-tp-call.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index f92aef492..d94c78f1f 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -537,6 +537,7 @@ tp_call_start_stream_engine (EmpathyTpCall *call) G_CALLBACK (tp_call_invalidated_cb), call); + /* FIXME: dbus daemon should be unique */ priv->dbus_daemon = tp_dbus_daemon_new (tp_get_bus ()); tp_dbus_daemon_watch_name_owner (priv->dbus_daemon, STREAM_ENGINE_BUS_NAME, tp_call_watch_name_owner_cb, @@ -631,7 +632,13 @@ tp_call_finalize (GObject *object) g_object_unref (priv->contact); if (priv->dbus_daemon != NULL) + { + tp_dbus_daemon_cancel_name_owner_watch (priv->dbus_daemon, + STREAM_ENGINE_BUS_NAME, + tp_call_watch_name_owner_cb, + object); g_object_unref (priv->dbus_daemon); + } (G_OBJECT_CLASS (empathy_tp_call_parent_class)->finalize) (object); } -- cgit v1.2.3