You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fixes memory leaks in GdNavigationServer and RasterizerSceneHighEndRD
This commit is contained in:
@@ -115,12 +115,15 @@
|
||||
|
||||
GdNavigationServer::GdNavigationServer() :
|
||||
NavigationServer(),
|
||||
commands_mutex(Mutex::create()),
|
||||
operations_mutex(Mutex::create()),
|
||||
active(true) {
|
||||
commands_mutex = Mutex::create();
|
||||
operations_mutex = Mutex::create();
|
||||
}
|
||||
|
||||
GdNavigationServer::~GdNavigationServer() {}
|
||||
GdNavigationServer::~GdNavigationServer() {
|
||||
memdelete(operations_mutex);
|
||||
memdelete(commands_mutex);
|
||||
}
|
||||
|
||||
void GdNavigationServer::add_command(SetCommand *command) const {
|
||||
auto mut_this = const_cast<GdNavigationServer *>(this);
|
||||
|
||||
Reference in New Issue
Block a user