Merge pull request #30135 from qarmin/fix_memory_leak_os

Fix small memory leak in OS.cpp
This commit is contained in:
Rémi Verschelde 2019-06-27 22:06:52 +02:00 committed by GitHub
commit 3942c939e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -760,6 +760,8 @@ OS::OS() {
}
OS::~OS() {
if (last_error)
memfree(last_error);
memdelete(_logger);
singleton = NULL;
}