diff options
-rw-r--r-- | core/os/os.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 027740c6a9..08067385ab 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; } |