From eb8c87174098c19df1d98ced16fc18061e5ee1e4 Mon Sep 17 00:00:00 2001 From: gambas Date: Mon, 11 Mar 2019 17:53:18 +0100 Subject: [PATCH] Don't try to abort JIT compilation if the JIT component is not loaded. [INTERPRETER] * BUG: Don't try to abort JIT compilation if the JIT component is not loaded. --- main/gbx/gbx_jit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/gbx/gbx_jit.c b/main/gbx/gbx_jit.c index c7dbc26c1..1931ec467 100644 --- a/main/gbx/gbx_jit.c +++ b/main/gbx/gbx_jit.c @@ -61,6 +61,9 @@ void JIT_abort(void) { static GB_FUNCTION _func; + if (!_component_loaded) + return; + if (GB_GetFunction(&_func, CLASS_find_global("Jit"), "_Abort", NULL, NULL)) ERROR_panic("Unable to find JIT._Abort() method");