[grilo-plugins] [apple-trailers] Solved memory problem when decreasing pending count



commit d4772460188ca47ce72407b82535fb07b1ece694
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date:   Fri Apr 23 12:13:34 2010 +0200

    [apple-trailers] Solved memory problem when decreasing pending count

 src/apple-trailers/grl-apple-trailers.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/apple-trailers/grl-apple-trailers.c b/src/apple-trailers/grl-apple-trailers.c
index 37afc4d..d183e91 100644
--- a/src/apple-trailers/grl-apple-trailers.c
+++ b/src/apple-trailers/grl-apple-trailers.c
@@ -271,7 +271,8 @@ send_movie_info (OperationData *op_data)
                            op_data->bs->user_data,
                            NULL);
     op_data->xml_entries = op_data->xml_entries->next;
-    op_data->bs->count--;
+    if (!last)
+      op_data->bs->count--;
   }
 
   if (last) {



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