xmptag: Don't leak the namespace string if there are multiple

https://bugzilla.gnome.org/show_bug.cgi?id=775887
This commit is contained in:
Sebastian Dröge 2016-12-09 17:36:47 +02:00
parent 7ff1de380f
commit 2f62720d71

View file

@ -1313,6 +1313,7 @@ gst_tag_list_from_xmp_buffer (GstBuffer * buffer)
}
if (ns_match[i].ns_prefix) {
if (strcmp (ns_map[i].original_ns, &as[6])) {
g_free (ns_map[i].gstreamer_ns);
ns_map[i].gstreamer_ns = g_strdup (&as[6]);
}
}