paulrouget / servofocus

Experimenting with a Xamarin.Forms + Servo
5 stars 2 forks source link

Free-all-the-things #10

Open paulrouget opened 6 years ago

paulrouget commented 6 years ago

In a coming update, we will be passing strings from Rust to C#, and we will ask Rust to forget about these strings. We need to find a way to free these strings. I think the best way for now is to not forget the strings and free them after the call to C# code, and require C# to clone the strings.

Same goes for C# to Rust code (load_url for example).