jni-bindgen
jni-bindgen copied to clipboard
Opposite of Local::leak
It would be nice to be able to create a local from a Ref that was made via a leak so you can use the existing Drop trait to clean it up.
One thing to worry about is we would only want to do this with things that we leaked from a Local. But not things that came from an Argument or Global.
This would definitely need to be an unsafe API.