summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarmin <mikrutrafal@protonmail.com>2021-10-18 11:19:31 +0200
committerqarmin <mikrutrafal@protonmail.com>2021-10-18 11:19:31 +0200
commit343d005e0f8739ca5fd5cfbd74a3be873bb93fae (patch)
tree4a168d15bf95d4c62fa03d854139ff7056ffbaf3
parent523e0d80a8118c933dc2fb747874526cd72e1f92 (diff)
Fix memory leak in exported project
-rw-r--r--core/object/method_bind.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/object/method_bind.cpp b/core/object/method_bind.cpp
index d1d8b075fe..642e27c41d 100644
--- a/core/object/method_bind.cpp
+++ b/core/object/method_bind.cpp
@@ -130,9 +130,7 @@ MethodBind::MethodBind() {
}
MethodBind::~MethodBind() {
-#ifdef DEBUG_METHODS_ENABLED
if (argument_types) {
memdelete_arr(argument_types);
}
-#endif
}