Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | gp1 |
I have a scene that uses a thread to load an image when the scene is ready.
If I switch to another scene quick enough, there will be memory leak even though the following code is executed:
func _exit_tree():
thread.wait_to_finish()
If I wait for a second and then switch to another scene, there is no memory leak.
The memory leakage is observed when running the app from xcode.