diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-18 16:18:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 16:18:57 +0200 |
commit | cff43e5326537dd0964ec84ec94382301b3c943b (patch) | |
tree | 40ffe38c614ae2466802e8e30e68c3a4c5366a6a /modules/gdscript/gdscript_function.h | |
parent | cb244f0b503f321cdb63e78ff2ea82da4192d868 (diff) | |
parent | e25f5e791e709f44026ad933d5eada34a4715ef6 (diff) | |
download | redot-engine-cff43e5326537dd0964ec84ec94382301b3c943b.tar.gz |
Merge pull request #41930 from RandomShaper/fix_gdscript_leaks
Fix leaks in GDScript
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index d1c98a5456..c98ac09310 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -56,7 +56,8 @@ struct GDScriptDataType { bool has_type = false; Variant::Type builtin_type = Variant::NIL; StringName native_type; - Ref<Script> script_type; + Script *script_type = nullptr; + Ref<Script> script_type_ref; bool is_type(const Variant &p_variant, bool p_allow_implicit_conversion = false) const { if (!has_type) { |