summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-10-01 11:53:19 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-10-01 11:53:19 +0000
commit0cc3b6698863d3595b188089f82229da78e2e91f (patch)
tree2bb73852211594a298406eb166ccf104eeddf96c /gst
parent0b7ac80b8cd1746224977c30305dcce348bbaec6 (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/wavparse/gstwavparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index e231feb6..87a48da7 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -525,7 +525,7 @@ static gboolean
gst_wavparse_fmt (GstWavParse * wav)
{
GstRiffRead *riff = GST_RIFF_READ (wav);
- gst_riff_strf_auds *header;
+ gst_riff_strf_auds *header = NULL;
GstCaps *caps;
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);
+ g_free (header);
+
return TRUE;
}