You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
-Changed Godot exit to be clean.
-Added more debug information on memory cleanliness on exit (if run with -v) -Fixed several memory leaks, fixes #1731, fixes #755
This commit is contained in:
@@ -278,6 +278,7 @@ void EditorFileServer::_thread_start(void*s) {
|
||||
self->to_wait.erase(w);
|
||||
self->wait_mutex->unlock();
|
||||
Thread::wait_to_finish(w);
|
||||
memdelete(w);
|
||||
self->wait_mutex->lock();
|
||||
}
|
||||
self->wait_mutex->unlock();
|
||||
@@ -346,5 +347,6 @@ EditorFileServer::~EditorFileServer() {
|
||||
|
||||
quit=true;
|
||||
Thread::wait_to_finish(thread);
|
||||
memdelete(thread);
|
||||
memdelete(wait_mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user