diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-09-30 13:00:48 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-09-30 13:00:48 +0100 |
commit | 08e539ecef13de3fdefc83fb422babb9a2201ac3 (patch) | |
tree | 86894b0c01b31e7316345f3b49437227165437f5 | |
parent | ba34738cbec2e3c4a80de58f56da0f80d7fe5143 (diff) | |
download | clutter-gst-08e539ecef13de3fdefc83fb422babb9a2201ac3.tar.gz |
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...
-rw-r--r-- | 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); } |