mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
parse: Unref reference to enclosing bins
Previously all reference to enclosing bins of an element were leaked when doing delaying setting a property. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733697
This commit is contained in:
parent
35fc309544
commit
0887020581
1 changed files with 3 additions and 0 deletions
|
@ -297,9 +297,12 @@ static void gst_parse_add_delayed_set (GstElement *element, gchar *name, gchar *
|
||||||
gst_parse_add_delayed_set(parent, sub_name, value_str);
|
gst_parse_add_delayed_set(parent, sub_name, value_str);
|
||||||
g_free (sub_name);
|
g_free (sub_name);
|
||||||
}
|
}
|
||||||
|
gst_object_unref (parent);
|
||||||
parent = child;
|
parent = child;
|
||||||
current++;
|
current++;
|
||||||
}
|
}
|
||||||
|
if (parent)
|
||||||
|
gst_object_unref (parent);
|
||||||
g_strfreev (names);
|
g_strfreev (names);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue