Merge pull request #30135 from qarmin/fix_memory_leak_os
Fix small memory leak in OS.cpp
This commit is contained in:
commit
3942c939e3
@ -760,6 +760,8 @@ OS::OS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS::~OS() {
|
OS::~OS() {
|
||||||
|
if (last_error)
|
||||||
|
memfree(last_error);
|
||||||
memdelete(_logger);
|
memdelete(_logger);
|
||||||
singleton = NULL;
|
singleton = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user