mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gst/wavparse/gstwavparse.c: Fix memleak (#155223).
Original commit message from CVS: Reviewd by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * gst/wavparse/gstwavparse.c: (gst_wavparse_fmt): Fix memleak (#155223).
This commit is contained in:
parent
4533321ed6
commit
ced0c877e6
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-10-29 Sebastien Cote <sc5@hermes.usherb.ca>
|
||||
|
||||
Reviewd by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/wavparse/gstwavparse.c: (gst_wavparse_fmt):
|
||||
Fix memleak (#155223).
|
||||
|
||||
2004-10-29 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/tcp/.cvsignore:
|
||||
|
|
|
@ -554,6 +554,7 @@ gst_wavparse_fmt (GstWavParse * wav)
|
|||
wav->bps = header->av_bps;
|
||||
|
||||
caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL);
|
||||
g_free (header);
|
||||
|
||||
if (caps) {
|
||||
gst_wavparse_create_sourcepad (wav);
|
||||
|
@ -566,10 +567,6 @@ gst_wavparse_fmt (GstWavParse * wav)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
g_free (header);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue