Fixes memory leaks in GdNavigationServer and RasterizerSceneHighEndRD
This commit is contained in:
parent
7724b842f6
commit
d9b5cbdffa
2 changed files with 18 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue