diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-06-27 21:35:27 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-06-27 21:35:27 +0200 |
commit | d408c254a2a13deba1004b18f2d35bb4844eb883 (patch) | |
tree | 25bb956796452ae2906d13ac801771bcc2c2fba1 | |
parent | eaaff9da3178fa515a0f051fda932c1dd04d53db (diff) |
Fix small memory leak in OS.cpp
-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; } |