diff --git a/core/os/os.cpp b/core/os/os.cpp index 027740c6a9c..08067385ab5 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -760,6 +760,8 @@ OS::OS() { } OS::~OS() { + if (last_error) + memfree(last_error); memdelete(_logger); singleton = NULL; }