ldesgoui / discord_game_sdk

Rust bindings for the Discord Game SDK
https://docs.rs/discord_game_sdk
Apache License 2.0
62 stars 11 forks source link

Use after free or memory leak in Relationships Filter #20

Closed ldesgoui closed 5 years ago

ldesgoui commented 5 years ago

Currently, it uses after free because the box is dropped after the first call If I don't drop the pointer, the closure is leaked I dont think there's a way to do this cleanly

ldesgoui commented 5 years ago

I could drop it at the end of all_relationships but I kind of wanted to turn that into an Iterator but that makes it practically impossible