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:
Jan Schmidt 2006-02-05 22:44:55 +00:00
parent 7b43847c2c
commit 409b9b220d
2 changed files with 9 additions and 1 deletions

View file

@ -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:

View file

@ -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);
}
}
}