[clutter-gst] player: Don't try to free NULL GstTagList



commit 08e539ecef13de3fdefc83fb422babb9a2201ac3
Author: Damien Lespiau <damien lespiau intel com>
Date:   Fri Sep 30 13:00:48 2011 +0100

    player: Don't try to free NULL GstTagList
    
    When the info is not ready yet, tag lists are NULL. Don't try to free
    NULL tag lists...

 clutter-gst/clutter-gst-player.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-player.c b/clutter-gst/clutter-gst-player.c
index b60161c..9f4ecf5 100644
--- a/clutter-gst/clutter-gst-player.c
+++ b/clutter-gst/clutter-gst-player.c
@@ -285,7 +285,8 @@ free_tags_list (GList **listp)
   l = *listp;
   while (l)
     {
-      gst_tag_list_free (l->data);
+      if (l->data)
+        gst_tag_list_free (l->data);
       l = g_list_delete_link (l, l);
     }
 



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