[totem] Check that the taglist is not NULL before trying to free it



commit 2bb88dc5cb0d5aed0df7e5388fde5751c65b8bb6
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Thu Nov 5 11:27:25 2009 +0100

    Check that the taglist is not NULL before trying to free it
    
    Fixes assertion failures in gst_tag_list_free().

 src/backend/bacon-video-widget-gst-0.10.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 750bf2b..5ca7947 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1702,7 +1702,8 @@ bvw_update_tags (BaconVideoWidget * bvw, GstTagList *tag_list, const gchar *type
   }
 
   /* clean up */
-  gst_tag_list_free (tag_list);
+  if (tag_list)
+    gst_tag_list_free (tag_list);
 
   if (bvw->priv->use_type != BVW_USE_TYPE_METADATA)
     bvw_check_for_cover_pixbuf (bvw);



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