mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
vorbistag: Fix leak in error case
Don't leak the vendor_string on error cases
This commit is contained in:
parent
0297bc2a4f
commit
8e867aefe0
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue