Merge pull request #30135 from qarmin/fix_memory_leak_os
Fix small memory leak in OS.cpp
This commit is contained in:
commit
3942c939e3
1 changed files with 2 additions and 0 deletions
|
@ -760,6 +760,8 @@ OS::OS() {
|
|||
}
|
||||
|
||||
OS::~OS() {
|
||||
if (last_error)
|
||||
memfree(last_error);
|
||||
memdelete(_logger);
|
||||
singleton = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue