mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
gst/wavparse/gstwavparse.c: Fix memleak.
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * gst/wavparse/gstwavparse.c: (gst_wavparse_fmt): Fix memleak.
This commit is contained in:
parent
0b7ac80b8c
commit
0cc3b66988
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-10-01 Francis Labonte <francis_labonte@hotmail.com>
|
||||||
|
|
||||||
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/wavparse/gstwavparse.c: (gst_wavparse_fmt):
|
||||||
|
Fix memleak.
|
||||||
|
|
||||||
2004-10-01 Balamurali Viswanathan <balamurali.viswanathan@wipro.com>
|
2004-10-01 Balamurali Viswanathan <balamurali.viswanathan@wipro.com>
|
||||||
|
|
||||||
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
|
@ -525,7 +525,7 @@ static gboolean
|
||||||
gst_wavparse_fmt (GstWavParse * wav)
|
gst_wavparse_fmt (GstWavParse * wav)
|
||||||
{
|
{
|
||||||
GstRiffRead *riff = GST_RIFF_READ (wav);
|
GstRiffRead *riff = GST_RIFF_READ (wav);
|
||||||
gst_riff_strf_auds *header;
|
gst_riff_strf_auds *header = NULL;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
if (!gst_riff_read_strf_auds (riff, &header)) {
|
if (!gst_riff_read_strf_auds (riff, &header)) {
|
||||||
|
@ -553,6 +553,8 @@ gst_wavparse_fmt (GstWavParse * wav)
|
||||||
|
|
||||||
GST_DEBUG ("frequency %d, channels %d", wav->rate, wav->channels);
|
GST_DEBUG ("frequency %d, channels %d", wav->rate, wav->channels);
|
||||||
|
|
||||||
|
g_free (header);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue