mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-15 14:02:32 +00:00
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:
parent
a78177aacb
commit
47a8d27a04
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue