1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix leaked objects when game ends with yields in progress

This commit is contained in:
Pedro J. Estébanez
2020-04-29 13:45:44 +02:00
parent f2150d1766
commit 68cca6e619
2 changed files with 37 additions and 11 deletions

View File

@@ -293,13 +293,17 @@ private:
public:
struct CallState {
ObjectID instance_id;
GDScript *script;
ObjectID script_id;
#ifdef DEBUG_ENABLED
String script_path;
#endif
GDScriptInstance *instance;
ObjectID instance_id;
Vector<uint8_t> stack;
int stack_size;
Variant self;
uint32_t alloca_size;
Ref<GDScript> script;
int ip;
int line;
int defarg;