ext/vorbis/vorbisdec.c: Do not leak old taglist.
Original commit message from CVS: * ext/vorbis/vorbisdec.c: Do not leak old taglist.
This commit is contained in:
parent
e5fd110c34
commit
476e95dc28
@ -1,3 +1,8 @@
|
|||||||
|
2008-08-05 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* ext/vorbis/vorbisdec.c:
|
||||||
|
Do not leak old taglist.
|
||||||
|
|
||||||
2008-08-04 Stefan Kost <ensonic@users.sf.net>
|
2008-08-04 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* tests/icles/test-scale.c:
|
* tests/icles/test-scale.c:
|
||||||
|
@ -682,7 +682,7 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet)
|
|||||||
{
|
{
|
||||||
guint bitrate = 0;
|
guint bitrate = 0;
|
||||||
gchar *encoder = NULL;
|
gchar *encoder = NULL;
|
||||||
GstTagList *list;
|
GstTagList *list, *old_list;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (vd, "parsing comment packet");
|
GST_DEBUG_OBJECT (vd, "parsing comment packet");
|
||||||
@ -694,8 +694,11 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet)
|
|||||||
gst_tag_list_from_vorbiscomment_buffer (buf, (guint8 *) "\003vorbis", 7,
|
gst_tag_list_from_vorbiscomment_buffer (buf, (guint8 *) "\003vorbis", 7,
|
||||||
&encoder);
|
&encoder);
|
||||||
|
|
||||||
|
old_list = vd->taglist;
|
||||||
vd->taglist = gst_tag_list_merge (vd->taglist, list, GST_TAG_MERGE_REPLACE);
|
vd->taglist = gst_tag_list_merge (vd->taglist, list, GST_TAG_MERGE_REPLACE);
|
||||||
|
|
||||||
|
if (old_list)
|
||||||
|
gst_tag_list_free (old_list);
|
||||||
gst_tag_list_free (list);
|
gst_tag_list_free (list);
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user