summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-27 21:35:27 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-27 21:35:27 +0200
commitd408c254a2a13deba1004b18f2d35bb4844eb883 (patch)
tree25bb956796452ae2906d13ac801771bcc2c2fba1 /core
parenteaaff9da3178fa515a0f051fda932c1dd04d53db (diff)
Fix small memory leak in OS.cpp
Diffstat (limited to 'core')
-rw-r--r--core/os/os.cpp2
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;
}