[0.11] gst-plugins-bad: opusparse: fix slist leak

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 12 16:19:12 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 98d6c005b8d6eaadcadd7fbe44f58cc853844637
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=98d6c005b8d6eaadcadd7fbe44f58cc853844637

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Wed Jan 11 16:32:31 2012 +0000

opusparse: fix slist leak

---

 ext/opus/gstopusparse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ext/opus/gstopusparse.c b/ext/opus/gstopusparse.c
index f3706cb..cdd035e 100644
--- a/ext/opus/gstopusparse.c
+++ b/ext/opus/gstopusparse.c
@@ -121,6 +121,7 @@ gst_opus_parse_stop (GstBaseParse * base)
   GstOpusParse *parse = GST_OPUS_PARSE (base);
 
   g_slist_foreach (parse->headers, (GFunc) gst_buffer_unref, NULL);
+  g_slist_free (parse->headers);
   parse->headers = NULL;
 
   parse->header_sent = FALSE;
@@ -294,6 +295,7 @@ gst_opus_parse_parse_frame (GstBaseParse * base, GstBaseParseFrame * frame)
     }
 
     g_slist_foreach (parse->headers, (GFunc) gst_buffer_unref, NULL);
+    g_slist_free (parse->headers);
     parse->headers = NULL;
 
     if (parse->id_header && parse->comment_header) {



More information about the gstreamer-commits mailing list