diff options
author | Frederico Linhares <fred@linhares.blue> | 2024-04-11 21:44:44 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2024-04-11 21:44:44 -0300 |
commit | 0bd787b86f891f2c363e2a9e9475cfc624954293 (patch) | |
tree | c3592766524f51ac597cddaa084f418b2c40383e | |
parent | 8acb4a0aad7f4d1b2438010d487489a9641e30cb (diff) |
fixt Prevent engine to break during initialization
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 945928d..f99e8ca 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,6 +47,7 @@ int main(int argc, char *argv[]) if (cg_core.mrb->exc) { mrb_print_error(cg_core.mrb); + mrb_close(cg_core.mrb); cg_sCore::loader.revert(nullptr); return 1; } |