mirror of
https://github.com/lune-org/lune.git
synced 2025-04-04 10:30:54 +01:00
drop app container early
This commit is contained in:
parent
25b09b18ac
commit
3d9bb89255
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ impl RequireContext {
|
|||
let mutli_clone = multi.clone();
|
||||
let multi_reg = lua.create_registry_value(mutli_clone.into_vec())?;
|
||||
|
||||
drop(data_ref);
|
||||
|
||||
let mut data = lua
|
||||
.app_data_mut::<RequireContextData>()
|
||||
.ok_or(LuaError::runtime("Couldn't find RequireContextData in app data container, make sure RequireStorage::init is called on this lua instance"))?;
|
||||
|
|
Loading…
Add table
Reference in a new issue