* glib/dbus-gmain.c (connection_setup_add_watch): plugged a leak
authorJohn (J5) Palmieri <johnp@redhat.com>
Wed, 30 Nov 2005 18:48:11 +0000 (18:48 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Wed, 30 Nov 2005 18:48:11 +0000 (18:48 +0000)
  (patch from Carlos Garnacho Parro <carlosg at gnome.org>

ChangeLog
glib/dbus-gmain.c

index 7e2bd0c..9e8d4a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-30  John (J5) Palmieri  <johnp@redhat.com>
+
+       * glib/dbus-gmain.c (connection_setup_add_watch): plugged a leak
+       (patch from Carlos Garnacho Parro <carlosg at gnome.org>
+
 2005-11-27  Robert McQueen  <robot101@debian.org>
 
        * python/dbus_bindings.pyx: Repair my previous commit which reverted
index 1d845b8..993bcf3 100644 (file)
@@ -286,6 +286,7 @@ connection_setup_add_watch (ConnectionSetup *cs,
   cs->ios = g_slist_prepend (cs->ios, handler);
   
   dbus_watch_set_data (watch, handler, io_handler_watch_freed);
+  g_io_channel_unref (channel);
 }
 
 static void