Explorar o código

Fix crash on exit due to GDScript CallStack mismatched deallocation

Serhii Snitsaruk hai 3 meses
pai
achega
67d97dab5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/gdscript/gdscript.h

+ 1 - 1
modules/gdscript/gdscript.h

@@ -448,7 +448,7 @@ class GDScriptLanguage : public ScriptLanguage {
 
 		void free() {
 			if (levels) {
-				memdelete(levels);
+				memdelete_arr(levels);
 				levels = nullptr;
 			}
 		}