[grilo-plugins] vimeo: Do not leak list



commit 92ec7cd56cae118431108e8c040b112d9d94dd08
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Sun Sep 1 09:53:02 2013 +0000

    vimeo: Do not leak list

 src/vimeo/gvimeo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vimeo/gvimeo.c b/src/vimeo/gvimeo.c
index 7a5d0de..e541938 100644
--- a/src/vimeo/gvimeo.c
+++ b/src/vimeo/gvimeo.c
@@ -363,7 +363,8 @@ process_video_search_result (const gchar *xml_result, gpointer user_data)
       node = node->next;
     }
 
-    data->search_cb (data->vimeo, g_list_reverse (video_list), data->user_data);
+    video_list = g_list_reverse (video_list);
+    data->search_cb (data->vimeo, video_list, data->user_data);
     g_list_free_full (video_list, (GDestroyNotify) g_hash_table_unref);
   }
   g_slice_free (GVimeoVideoSearchData, data);


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