[grilo-plugins] apple-trailer: unref source object on read reply



commit f0d8ae98ef472b7d978b7977ae135c5a6b472e42
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date:   Thu Sep 9 19:18:51 2010 +0200

    apple-trailer: unref source object on read reply
    
    Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>

 src/apple-trailers/grl-apple-trailers.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/apple-trailers/grl-apple-trailers.c b/src/apple-trailers/grl-apple-trailers.c
index 087b6e1..3a86434 100644
--- a/src/apple-trailers/grl-apple-trailers.c
+++ b/src/apple-trailers/grl-apple-trailers.c
@@ -414,11 +414,14 @@ read_done_cb (GObject *source_object,
     g_error_free (error);
     g_slice_free (OperationData, op_data);
 
-    return;
+    goto end_func;
   }
 
   xml_parse_result (content, op_data);
   g_free (content);
+
+end_func:
+  g_object_unref (source_object);
 }
 
 static void



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