mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
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:
parent
0ed3d95c60
commit
6ff5f89832
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue