base: Fix memory leak if BaseSrc/PushSrc parent class is not filling the provided buffer as it should

This commit is contained in:
Sebastian Dröge 2022-06-24 10:23:27 +03:00
parent 62a2ad8a1e
commit 7873a426d4
2 changed files with 2 additions and 2 deletions

View file

@ -414,7 +414,7 @@ impl<T: BaseSrcImpl> BaseSrcImplExt for T {
if let Some(passed_buffer) = buffer {
if buffer_ptr != orig_buffer_ptr {
let new_buffer = gst::BufferRef::from_ptr(buffer_ptr);
let new_buffer = gst::Buffer::from_glib_full(buffer_ptr);
gst_debug!(
gst::CAT_PERFORMANCE,

View file

@ -154,7 +154,7 @@ impl<T: PushSrcImpl> PushSrcImplExt for T {
if let Some(passed_buffer) = buffer {
if buffer_ptr != orig_buffer_ptr {
let new_buffer = gst::BufferRef::from_ptr(buffer_ptr);
let new_buffer = gst::Buffer::from_glib_full(buffer_ptr);
gst_debug!(
gst::CAT_PERFORMANCE,