tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

Destructor for Rust closure environment doesn't run #138

Closed mkpankov closed 7 years ago

mkpankov commented 7 years ago

This is the source code of the test:

https://github.com/mkpankov/hlua-test/blob/master/src/main.rs

Why dropping lua doesn't drop f?

Is this a known limitation?

Is there a workaround?

mkpankov commented 7 years ago

Simplified the test case. See the latest master (Rc isn't needed to trigger the bug).