You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix memory leak when passing Option<SwiftType> from Swift to Rust. #273
It is very unlikely that users were impacted by this leak Option<SwiftType> support was introduced about 10 hours ago
Full explanation of the leak can be found in 87dbea3
#[swift_bridge::bridge]mod ffi {extern"Swift"{typeSomeSwiftType;}extern"Rust"{// Calling with would leak memory in "0.1.54".// This no longer leaks as of "0.1.55".fnoption_arg(arg:Option<SomeSwiftType>);}}