empathy r672 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r672 - trunk/libempathy
- Date: Tue, 26 Feb 2008 13:31:29 +0000 (GMT)
Author: xclaesse
Date: Tue Feb 26 13:31:28 2008
New Revision: 672
URL: http://svn.gnome.org/viewvc/empathy?rev=672&view=rev
Log:
Cancel name owner watch when the call is finalized
Modified:
trunk/libempathy/empathy-tp-call.c
Modified: trunk/libempathy/empathy-tp-call.c
==============================================================================
--- trunk/libempathy/empathy-tp-call.c (original)
+++ trunk/libempathy/empathy-tp-call.c Tue Feb 26 13:31:28 2008
@@ -537,6 +537,7 @@
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 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]