mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
GDScript: Fix memory leak when using self class as type
This commit is contained in:
parent
1c8b076502
commit
89695da337
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue