[Telepathy-commits] [telepathy-gabble/master] gabble_tube_dbus_listen: free and set to NULL the dbus_srv_addr and socket_path if dbus_server_listen failed

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Oct 27 08:26:35 PDT 2008


---
 src/tube-dbus.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index 62c3f99..91ce4bb 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -334,6 +334,13 @@ gabble_tube_dbus_listen (GabbleTubeDBus *self)
   if (priv->dbus_srv == NULL)
     {
       DEBUG ("all attempts failed. Close the tube");
+
+      g_free (priv->dbus_srv_addr);
+      priv->dbus_srv_addr = NULL;
+
+      g_free (priv->socket_path);
+      priv->socket_path = NULL;
+
       do_close (self);
       return;
     }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list