[grilo-plugins] shoutcast: fix memory leak



commit 62a13be3a54d0effbcc287b99df33c400dd6f16c
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date:   Mon Sep 27 19:48:44 2010 +0200

    shoutcast: fix memory leak
    
    Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>

 src/shoutcast/grl-shoutcast.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/shoutcast/grl-shoutcast.c b/src/shoutcast/grl-shoutcast.c
index 7405d1a..f68d244 100644
--- a/src/shoutcast/grl-shoutcast.c
+++ b/src/shoutcast/grl-shoutcast.c
@@ -493,7 +493,7 @@ read_done_cb (GObject *source_object,
     g_error_free (error);
     g_slice_free (OperationData, op_data);
 
-    return;
+    goto end_func;
   }
 
   cache = op_data->cache;
@@ -507,6 +507,9 @@ read_done_cb (GObject *source_object,
   } else {
     g_free (content);
   }
+
+end_func:
+  g_object_unref (source_object);
 }
 
 static gboolean



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