From c427334393837b26f76e621f25c7886c5aa62336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Wed, 29 Apr 2020 13:38:00 +0200 Subject: Fix leaked objects when game ends with yields in progress --- modules/gdscript/gdscript_function.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/gdscript/gdscript_function.h') 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 stack; int stack_size; Variant self; uint32_t alloca_size; - Ref script; int ip; int line; int defarg; -- cgit v1.2.3