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:
Ronald S. Bultje 2004-10-29 11:57:35 +00:00
parent 4533321ed6
commit ced0c877e6
2 changed files with 8 additions and 4 deletions

View file

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

View file

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