gstreamer: Fix memory leak in buffer pool subclassing test

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1180>
This commit is contained in:
Sebastian Dröge 2023-01-03 12:32:01 +02:00 committed by GStreamer Marge Bot
parent 0ed3d95c60
commit 6ff5f89832

View file

@ -597,7 +597,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);
}
}