diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-11-16 08:32:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 08:32:00 +0300 |
commit | 95a85c9058e9c2a7eab3f5a272ffbe741a6750d1 (patch) | |
tree | 22fda30465e0b6fe6d00babc82919949713ef78d /modules | |
parent | 5993209b2649c93b56789bfc243c5a6046ee77ce (diff) | |
parent | 61df8f448479b20db1d04372b6b2f88c38ee11cc (diff) |
Merge pull request #68717 from rune-scape/rune-compiler-regression
Fixes https://github.com/godotengine/godot/issues/68716
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index aa1356d8c0..824625b745 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -133,6 +133,7 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D 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); + return GDScriptDataType(); } else { // 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. |