diff --git a/gstreamer/src/subclass/element.rs b/gstreamer/src/subclass/element.rs index c26b0fccc..89552f6ab 100644 --- a/gstreamer/src/subclass/element.rs +++ b/gstreamer/src/subclass/element.rs @@ -373,7 +373,7 @@ unsafe extern "C" fn element_release_pad( 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)) }) }