mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
GDScript Compiler: regression fix
This commit is contained in:
parent
963ffd8b94
commit
61df8f4484
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
||||||
|
|
||||||
if (script.is_null()) {
|
if (script.is_null()) {
|
||||||
_set_error(vformat(R"(Could not find class "%s" in "%s".)", p_datatype.class_type->fqcn, p_datatype.script_path), nullptr);
|
_set_error(vformat(R"(Could not find class "%s" in "%s".)", p_datatype.class_type->fqcn, p_datatype.script_path), nullptr);
|
||||||
|
return GDScriptDataType();
|
||||||
} else {
|
} else {
|
||||||
// Only hold a strong reference if the owner of the element qualified with this type is not local, to avoid cyclic references (leaks).
|
// Only hold a strong reference if the owner of the element qualified with this type is not local, to avoid cyclic references (leaks).
|
||||||
// TODO: Might lead to use after free if script_type is a subclass and is used after its parent is freed.
|
// TODO: Might lead to use after free if script_type is a subclass and is used after its parent is freed.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue