vorbistag: Fix leak in error case

Don't leak the vendor_string on error cases
This commit is contained in:
Edward Hervey 2017-11-01 10:53:54 +01:00 committed by Edward Hervey
parent 0297bc2a4f
commit 8e867aefe0

View file

@ -489,6 +489,10 @@ gst_tag_list_from_vorbiscomment (const guint8 * data, gsize size,
return list;
error:
if (vendor_string && *vendor_string) {
g_free (*vendor_string);
*vendor_string = NULL;
}
gst_tag_list_unref (list);
return NULL;
#undef ADVANCE