From 42d8b96f2d2824cf8126526e4966f2144e82e537 Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Wed, 20 Feb 2013 15:46:43 +0100 Subject: [PATCH] auparse: do not leak src_caps https://bugzilla.gnome.org/show_bug.cgi?id=694275 --- gst/auparse/gstauparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index e643cdc2aa..c4319cbc92 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -174,6 +174,8 @@ gst_au_parse_reset (GstAuParse * auparse) gst_adapter_clear (auparse->adapter); + gst_caps_replace (&auparse->src_caps, NULL); + /* gst_segment_init (&auparse->segment, GST_FORMAT_TIME); */ }