mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
8741f782fa
commit
41a6305d55
2 changed files with 9 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue