summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2024-04-11 21:44:44 -0300
committerFrederico Linhares <fred@linhares.blue>2024-04-11 21:44:44 -0300
commit0bd787b86f891f2c363e2a9e9475cfc624954293 (patch)
treec3592766524f51ac597cddaa084f418b2c40383e /src/main.cpp
parent8acb4a0aad7f4d1b2438010d487489a9641e30cb (diff)
fixt Prevent engine to break during initialization
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
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;
}