diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2020-04-29 13:38:00 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2020-04-29 13:55:10 +0200 |
commit | c427334393837b26f76e621f25c7886c5aa62336 (patch) | |
tree | 83ea91a920692e0ff6acc98e98fa261856e457d5 /modules/gdscript/gdscript_function.h | |
parent | b3da42942301e621b0fe64474dbbe0b39cef336b (diff) | |
download | redot-engine-c427334393837b26f76e621f25c7886c5aa62336.tar.gz |
Fix leaked objects when game ends with yields in progress
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index acfc0a95b4..9d8e23d994 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -293,13 +293,15 @@ private: public: struct CallState { + ObjectID script_id; +#ifdef DEBUG_ENABLED + String script_path; +#endif ObjectID instance_id; - GDScriptInstance *instance; Vector<uint8_t> stack; int stack_size; Variant self; uint32_t alloca_size; - Ref<GDScript> script; int ip; int line; int defarg; |