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



commit 595274ac3aa374adbe46854d23cbdf576cc6757f
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 9c608c8..bb1fbcc 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]