mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-02 13:11:31 +00:00
Fix memory leak in ElementClass::add_pad_template()
It's taking the pad template as transfer-floating, not transfer-full.
This commit is contained in:
parent
93b3aa7ea6
commit
4bede2cfa3
|
@ -115,7 +115,7 @@ where
|
|||
unsafe {
|
||||
gst_ffi::gst_element_class_add_pad_template(
|
||||
self as *const Self as *mut gst_ffi::GstElementClass,
|
||||
pad_template.to_glib_full(),
|
||||
pad_template.to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue