Browse Source

Fix memory leak in exported project

qarmin 4 years ago
parent
commit
343d005e0f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      core/object/method_bind.cpp

+ 0 - 2
core/object/method_bind.cpp

@@ -130,9 +130,7 @@ MethodBind::MethodBind() {
 }
 }
 
 
 MethodBind::~MethodBind() {
 MethodBind::~MethodBind() {
-#ifdef DEBUG_METHODS_ENABLED
 	if (argument_types) {
 	if (argument_types) {
 		memdelete_arr(argument_types);
 		memdelete_arr(argument_types);
 	}
 	}
-#endif
 }
 }