Re: [libvirt] [libvirt-glib 3/3] glib: Don't leak GIOChannel when destroying IO handle

2014-01-29 Thread Daniel P. Berrange
On Tue, Jan 28, 2014 at 02:08:28PM +0100, Christophe Fergeau wrote: gvir_event_handle_add() creates a GIOChannel in order to watch the fd it was given for changes. gvir_event_handle_remove() is freeing all the resources allocated by gvir_event_handle_add() except for this GIOChannel. This

[libvirt] [libvirt-glib 3/3] glib: Don't leak GIOChannel when destroying IO handle

2014-01-28 Thread Christophe Fergeau
gvir_event_handle_add() creates a GIOChannel in order to watch the fd it was given for changes. gvir_event_handle_remove() is freeing all the resources allocated by gvir_event_handle_add() except for this GIOChannel. This commit adds the needed g_io_channel_unref() call to