[grilo] net: unref stream after using it



commit a6d96cd56dca6232ffdd92678b4c73adc5466b94
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Sep 13 16:00:19 2013 +0000

    net: unref stream after using it
    
    https://bugs.launchpad.net/bugs/1224410

 libs/net/grl-net-wc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index 8721f81..f935ba3 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -606,6 +606,7 @@ read_async_cb (GObject *source,
   rr->buffer[rr->offset] = '\0';
 
   g_input_stream_close (G_INPUT_STREAM (source), NULL, NULL);
+  g_object_unref (source);
 
   if (error) {
     if (error->code == G_IO_ERROR_CANCELLED) {


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