GDScript: Fix memory leak when using self class as type
This commit is contained in:
parent
1c8b076502
commit
89695da337
@ -126,8 +126,7 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
|||||||
names.pop_back();
|
names.pop_back();
|
||||||
}
|
}
|
||||||
result.kind = GDScriptDataType::GDSCRIPT;
|
result.kind = GDScriptDataType::GDSCRIPT;
|
||||||
result.script_type_ref = script;
|
result.script_type = script.ptr();
|
||||||
result.script_type = result.script_type_ref.ptr();
|
|
||||||
result.native_type = script->get_instance_base_type();
|
result.native_type = script->get_instance_base_type();
|
||||||
} else {
|
} else {
|
||||||
result.kind = GDScriptDataType::GDSCRIPT;
|
result.kind = GDScriptDataType::GDSCRIPT;
|
||||||
|
Loading…
Reference in New Issue
Block a user