Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf945a35

Browse files
committed
Execute metatable destructor inTable::set_metatable at the end of invocation
Before this change, destructor was executed shortly after pushing metatable to ref_thread.
1 parent459edb6 commitf945a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl Table {
510510
let lua =self.0.lua.lock();
511511
let ref_thread = lua.ref_thread();
512512
unsafe{
513-
ifletSome(metatable) = metatable{
513+
ifletSome(metatable) =&metatable{
514514
ffi::lua_pushvalue(ref_thread, metatable.0.index);
515515
}else{
516516
ffi::lua_pushnil(ref_thread);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp