gstreamer: Fix memory leak in buffer pool subclassing test

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1193>
This commit is contained in:
Sebastian Dröge 2023-01-03 12:32:01 +02:00
parent a78177aacb
commit 47a8d27a04

View file

@ -608,7 +608,7 @@ mod tests {
data: *mut libc::c_void,
_mini_object: *mut ffi::GstMiniObject,
) {
let finalized = &*(data as *const AtomicBool);
let finalized = Arc::from_raw(data as *const AtomicBool);
finalized.store(true, Ordering::SeqCst);
}
}