Fix crash on GDNative API json generator exit.

(cherry picked from commit a4423c82f8)
This commit is contained in:
bruvzg 2021-04-22 10:24:04 +03:00 committed by Rémi Verschelde
parent 0ecbf77e30
commit e86d086573
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@
#include "core/os/os.h"
#include "core/project_settings.h"
#include "main/main.h"
#include "scene/main/scene_tree.h"
#include "scene/resources/resource_format_text.h"
@ -1055,6 +1057,7 @@ void NativeScriptLanguage::init() {
if (generate_c_api(E->next()->get()) != OK) {
ERR_PRINT("Failed to generate C API\n");
}
Main::cleanup(true);
exit(0);
}
#endif