Merge pull request #41931 from RandomShaper/fix_gdscript_leaks_3.2

Fix leaks in GDScript (3.2)
This commit is contained in:
Rémi Verschelde
2020-09-24 08:33:04 +02:00
committed by GitHub
6 changed files with 37 additions and 13 deletions

View File

@ -6055,7 +6055,7 @@ GDScriptParser::DataType GDScriptParser::_type_from_gdtype(const GDScriptDataTyp
result.has_type = true;
result.builtin_type = p_gdtype.builtin_type;
result.native_type = p_gdtype.native_type;
result.script_type = p_gdtype.script_type;
result.script_type = Ref<Script>(p_gdtype.script_type);
switch (p_gdtype.kind) {
case GDScriptDataType::UNINITIALIZED: {