You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
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).
(cherry picked from commit 4d960efafc)
This commit is contained in:
committed by
Pedro J. Estébanez
parent
61c8efecff
commit
e360dc9a79
@@ -914,7 +914,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;
|
||||
|
||||
Reference in New Issue
Block a user