diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-11 16:32:31 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-18 12:36:41 +0000 |
commit | d8ce628cc9ade4815600b71eee34252f709eaad8 (patch) | |
tree | 9966ca62771343ced155693e9328c98ea5b6433e | |
parent | f9b7da6f921f9103438df807b930aacad38b243d (diff) |
opusparse: fix slist leak
-rw-r--r-- | 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 f3706cb72..cdd035e9d 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) { |