diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-09-06 13:06:26 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-09-06 13:16:44 +0200 |
commit | 4be8c44b08df22b91030497d8fd80fb1b2d5c80d (patch) | |
tree | a51a83fac016e327a17e7962f02ec7d6882dcbcc | |
parent | 490518cfa6721836bada78d1350ba4ead7145e56 (diff) |
decodebin2: Fix memory leak
-rw-r--r-- | gst/playback/gstdecodebin2.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |