Commit e0078130 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

gstreamer/element: Use from_glib_none() for the release_pad() trampoline

The reference to the pad we get passed is not guaranteed to be valid for
the whole scope of release_pad(). It might be the last reference as
owned by GstElement, and gst_element_remove_pad() would destroy it then.
parent 2829c7ee
Pipeline #56250 passed with stages
in 35 minutes and 32 seconds
......@@ -373,7 +373,7 @@ unsafe extern "C" fn element_release_pad<T: ObjectSubclass>(
let wrap: Element = from_glib_borrow(ptr);
gst_panic_to_error!(&wrap, &instance.panicked(), (), {
imp.release_pad(&wrap, &from_glib_borrow(pad))
imp.release_pad(&wrap, &from_glib_none(pad))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment