From 3703999895a5aaf0ebc2e0649d596aa7ad10b110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 May 2018 12:00:14 +0300 Subject: [PATCH] Fix memory leak in ElementClass::add_pad_template() It's taking the pad template as transfer-floating, not transfer-full. --- gst-plugin/src/element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-plugin/src/element.rs b/gst-plugin/src/element.rs index 20348917..6db791c7 100644 --- a/gst-plugin/src/element.rs +++ b/gst-plugin/src/element.rs @@ -151,7 +151,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, ); } }