1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +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:38:00 +02:00
parent b3da429423
commit c427334393
2 changed files with 25 additions and 11 deletions

View File

@@ -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;