summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_function.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-04-29 17:30:28 +0200
committerGitHub <noreply@github.com>2020-04-29 17:30:28 +0200
commit92d4a0cbd231508221b0e977ae9a0e9d4207e328 (patch)
treea5716c7c2df0c61229ca2a34a0f2c674fdd3ce3b /modules/gdscript/gdscript_function.h
parentb46e5c7b946c71ea4aa56ab067514124b5c306d8 (diff)
parentc427334393837b26f76e621f25c7886c5aa62336 (diff)
downloadredot-engine-92d4a0cbd231508221b0e977ae9a0e9d4207e328.tar.gz
Merge pull request #38288 from RandomShaper/imvu/fix_not_freed_gdsfuncstate
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.h6
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;