mirror of https://github.com/godotengine/godot
Fix crash on exit due to GDScript CallStack mismatched deallocation
This commit is contained in:
parent
25a3c27c41
commit
67d97dab5b
|
|
@ -448,7 +448,7 @@ class GDScriptLanguage : public ScriptLanguage {
|
||||||
|
|
||||||
void free() {
|
void free() {
|
||||||
if (levels) {
|
if (levels) {
|
||||||
memdelete(levels);
|
memdelete_arr(levels);
|
||||||
levels = nullptr;
|
levels = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue