diff options
author | George Marques <george@gmarqu.es> | 2020-02-19 09:15:16 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-02-19 09:15:16 -0300 |
commit | 4d960efafc64f0f94f68158ca49ed7f3dd9742dc (patch) | |
tree | d331b21a764b512d6479ad98148e08f778cad732 /modules/gdscript/gdscript.cpp | |
parent | d4906481685f1379bc297ab7fb5b47b03e6771bb (diff) | |
download | redot-engine-4d960efafc64f0f94f68158ca49ed7f3dd9742dc.tar.gz |
GDScript: Remove self static reference and create one on calls
This is needed because of the new changes to Variant. The reference
counter is increased by adding it to a Variant, which means no GDScript
will be freed (or will be double freed if manually freed somewhere).
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index a73276dda2..6d926fb88d 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -995,7 +995,6 @@ void GDScript::get_script_signal_list(List<MethodInfo> *r_signals) const { GDScript::GDScript() : script_list(this) { - _static_ref = this; valid = false; subclass_count = 0; initializer = NULL; |