diff options
-rw-r--r-- | gi/closure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/closure.c b/gi/closure.c index 7cf084cc..3eb5a33e 100644 --- a/gi/closure.c +++ b/gi/closure.c @@ -275,13 +275,14 @@ gjs_closure_invoke(GClosure *closure, closure, c->obj); if (!gjs_log_exception(context, NULL)) gjs_debug_closure("Closure invocation failed but no exception was set?"); - return; + goto out; } if (gjs_log_exception(context, NULL)) { gjs_debug_closure("Closure invocation succeeded but an exception was set"); } + out: JS_EndRequest(context); } |