gstreamer: Fix leak in parent_request_new_pad()

request_new_pad() does not take ownership of name string

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1715>
This commit is contained in:
Seungha Yang 2025-04-15 00:52:27 +09:00
parent a91f5bceb5
commit 10dcee7b59

View file

@ -156,7 +156,7 @@ pub trait ElementImplExt: ElementImpl {
from_glib_none(f( from_glib_none(f(
self.obj().unsafe_cast_ref::<Element>().to_glib_none().0, self.obj().unsafe_cast_ref::<Element>().to_glib_none().0,
templ.to_glib_none().0, templ.to_glib_none().0,
name.to_glib_full(), name.to_glib_none().0,
caps.to_glib_none().0, caps.to_glib_none().0,
)) ))
}) })