gst/wavparse/gstwavparse.c: Fix a caps memleak.

Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt): Fix a caps
memleak.
This commit is contained in:
David Schleef 2004-02-05 03:19:13 +00:00
parent 8741f782fa
commit 41a6305d55
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-02-04 David Schleef <ds@schleef.org>
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt): Fix a caps
memleak.
2004-02-05 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst-libs/gst/riff/riff-read.c: (gst_riff_read_info):

View file

@ -640,8 +640,10 @@ gst_wavparse_parse_fmt (GstWavParse *wavparse, guint size)
return;
}
if (caps)
gst_pad_set_explicit_caps (wavparse->srcpad, caps);
if (caps) {
gst_pad_set_explicit_caps (wavparse->srcpad, caps);
gst_caps_free (caps);
}
GST_DEBUG ("frequency %d, channels %d",
wavparse->rate, wavparse->channels);