Skip to content

Commit

Permalink
Fix crash when swapchain is dropped on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
aclysma committed Mar 2, 2024
1 parent 1bbafe1 commit 8eb2f77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rafx-api/src/backends/metal/internal/extra_ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ impl NSWindowWrapper {
let is_actually_window: BOOL = msg_send![window, isKindOfClass: class];
assert_eq!(is_actually_window, YES);

let ptr = StrongPtr::new(window);
StrongPtr::retain(window);
let ptr = StrongPtr::retain(window);
NSWindowWrapper(ptr)
}
}
Expand Down

0 comments on commit 8eb2f77

Please sign in to comment.