Skip to content

Commit

Permalink
Fix test of alive when sending object argument
Browse files Browse the repository at this point in the history
Fixes #665.
  • Loading branch information
ids1024 committed Dec 19, 2023
1 parent 7e98c79 commit 4d84143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wayland-backend/src/sys/client_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ impl InnerBackend {
Argument::Object(ref o) => {
let next_interface = arg_interfaces.next().unwrap();
if !o.id.ptr.is_null() {
if !id.alive.as_ref().map(|a| a.load(Ordering::Acquire)).unwrap_or(true) {
if !o.id.alive.as_ref().map(|a| a.load(Ordering::Acquire)).unwrap_or(true) {
unsafe { free_arrays(message_desc.signature, &argument_list) };
return Err(InvalidId);
}
Expand Down

0 comments on commit 4d84143

Please sign in to comment.