mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
ext/vorbis/vorbisenc.c: Don't leak tag names.
Original commit message from CVS: * ext/vorbis/vorbisenc.c: (gst_vorbisenc_metadata_set1): Don't leak tag names.
This commit is contained in:
parent
7b43847c2c
commit
409b9b220d
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-05 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_metadata_set1):
|
||||
Don't leak tag names.
|
||||
|
||||
2006-02-05 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/libs/gst-plugins-base-libs-docs.sgml:
|
||||
|
|
|
@ -609,7 +609,10 @@ gst_vorbisenc_metadata_set1 (const GstTagList * list, const gchar * tag,
|
|||
vorbisvalue = gst_vorbisenc_get_tag_value (list, tag, i);
|
||||
|
||||
if (vorbisvalue != NULL) {
|
||||
vorbis_comment_add_tag (&enc->vc, g_strdup (vorbistag), vorbisvalue);
|
||||
gchar *tmptag = g_strdup (vorbistag);
|
||||
|
||||
vorbis_comment_add_tag (&enc->vc, tmptag, vorbisvalue);
|
||||
g_free (tmptag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue