From 4be8c44b08df22b91030497d8fd80fb1b2d5c80d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 6 Sep 2011 13:06:26 +0200 Subject: [PATCH] decodebin2: Fix memory leak --- gst/playback/gstdecodebin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index a814dac44..cf9541c8a 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -1461,6 +1461,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad, /* If the caps are raw, this just means we don't want to expose them */ if (gst_caps_can_intersect (raw, caps)) { + g_value_array_free (factories); gst_caps_unref (raw); gst_object_unref (dpad); goto discarded_type; @@ -1533,6 +1534,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad, if (dontuse) { gst_object_unref (dpad); + g_value_array_free (factories); goto discarded_type; } } -- 2.34.1