mirror of
https://github.com/godotengine/godot
synced 2024-09-05 23:13:50 +00:00
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();
|
||||
}
|
||||
result.kind = GDScriptDataType::GDSCRIPT;
|
||||
result.script_type_ref = script;
|
||||
result.script_type = result.script_type_ref.ptr();
|
||||
result.script_type = script.ptr();
|
||||
result.native_type = script->get_instance_base_type();
|
||||
} else {
|
||||
result.kind = GDScriptDataType::GDSCRIPT;
|
||||
|
|
Loading…
Reference in a new issue