mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix edge cases of object lifetime when signals involved
This commit is contained in:
parent
59b8c70007
commit
2f4168daeb
5 changed files with 30 additions and 1 deletions
|
@ -1665,6 +1665,7 @@ Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::Sui
|
|||
Error err = OK;
|
||||
GDScriptCodeGenerator *gen = codegen.generator;
|
||||
|
||||
gen->clean_temporaries();
|
||||
codegen.start_block();
|
||||
|
||||
if (p_add_locals) {
|
||||
|
@ -1967,6 +1968,8 @@ Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::Sui
|
|||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
gen->clean_temporaries();
|
||||
}
|
||||
|
||||
codegen.end_block();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue