You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Remove thread after use to prevent memory leak
This commit is contained in:
@@ -264,6 +264,7 @@ bool LightmapperCPU::_parallel_run(int p_count, const String &p_description, Bak
|
||||
}
|
||||
thread_cancelled = cancelled;
|
||||
Thread::wait_to_finish(runner_thread);
|
||||
memdelete(runner_thread);
|
||||
#endif
|
||||
|
||||
thread_cancelled = false;
|
||||
|
||||
Reference in New Issue
Block a user