Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-05-09 12:00:14 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-05-09 12:26:00 +0300
commit4bede2cfa387535030959d3cf5a8430e0c798116 (patch)
tree833f3861d3473d08d334de464799e42abb8dbdac
parent93b3aa7ea626db66cae1f04837ecf1e73d3af493 (diff)
Fix memory leak in ElementClass::add_pad_template()
It's taking the pad template as transfer-floating, not transfer-full.
-rw-r--r--gst-plugin/src/element.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-plugin/src/element.rs b/gst-plugin/src/element.rs
index bfadaa6f6..dc8ea68dc 100644
--- a/gst-plugin/src/element.rs
+++ b/gst-plugin/src/element.rs
@@ -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,
);
}
}