Merge pull request #42323 from RandomShaper/fixup_gdscript_leaks_fix_3.2

Fix GDScript leak avoidance (3.2)
This commit is contained in:
Rémi Verschelde 2020-09-25 08:09:06 +02:00 committed by GitHub
commit 4162df4397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1875,7 +1875,7 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar
p_script->native = native;
} break;
case GDScriptDataType::GDSCRIPT: {
Ref<GDScript> base = Ref<GDScript>(base_type.script_type);
Ref<GDScript> base = Ref<Script>(base_type.script_type);
p_script->base = base;
p_script->_base = base.ptr();
p_script->member_indices = base->member_indices;