proxysrc: Fix order freeing pads
Free pads from bottom of parent tree first else with GST_DEBUG enabled it would access freed memory printing object info. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9273>
This commit is contained in:
parent
d7e90e5a15
commit
27a55d9346
@ -244,12 +244,12 @@ gst_proxy_src_dispose (GObject * object)
|
||||
{
|
||||
GstProxySrc *self = GST_PROXY_SRC (object);
|
||||
|
||||
gst_object_unparent (GST_OBJECT (self->dummy_sinkpad));
|
||||
self->dummy_sinkpad = NULL;
|
||||
|
||||
gst_object_unparent (GST_OBJECT (self->internal_srcpad));
|
||||
self->internal_srcpad = NULL;
|
||||
|
||||
gst_object_unparent (GST_OBJECT (self->dummy_sinkpad));
|
||||
self->dummy_sinkpad = NULL;
|
||||
|
||||
g_weak_ref_set (&self->proxysink, NULL);
|
||||
|
||||
G_OBJECT_CLASS (gst_proxy_src_parent_class)->dispose (object);
|
||||
|
Loading…
x
Reference in New Issue
Block a user