mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
decodebin2: Fix memory leak
This commit is contained in:
parent
490518cfa6
commit
4be8c44b08
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue