[glib/wip/gcleanup: 68/78] gtestdbus: Cleanup io channel which would otherwise leak



commit ef9723e0c9b8bfcde2e01c9fa4644dc0eb69f735
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:20:07 2013 +0100

    gtestdbus: Cleanup io channel which would otherwise leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711799

 gio/gtestdbus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c
index 42c3496..1786f5e 100644
--- a/gio/gtestdbus.c
+++ b/gio/gtestdbus.c
@@ -266,6 +266,7 @@ watcher_init (void)
           /* parent */
           close (pipe_fds[0]);
           channel = g_io_channel_unix_new (pipe_fds[1]);
+          G_CLEANUP (channel, g_io_channel_unref);
         }
 
       g_once_init_leave (&started, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]