mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +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;
|
return list;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
if (vendor_string && *vendor_string) {
|
||||||
|
g_free (*vendor_string);
|
||||||
|
*vendor_string = NULL;
|
||||||
|
}
|
||||||
gst_tag_list_unref (list);
|
gst_tag_list_unref (list);
|
||||||
return NULL;
|
return NULL;
|
||||||
#undef ADVANCE
|
#undef ADVANCE
|
||||||
|
|
Loading…
Reference in a new issue