summaryrefslogtreecommitdiffstats
path: root/gst/wavparse/gstwavparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/wavparse/gstwavparse.c')
-rw-r--r--gst/wavparse/gstwavparse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index 678e49fe..350648df 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -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;
}