[gjs] closure: Add missing JS_EndRequest in error path
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] closure: Add missing JS_EndRequest in error path
- Date: Thu, 23 Sep 2010 18:21:59 +0000 (UTC)
commit daa1efbba4aabe33856546daf4d52de5f6c751d3
Author: Colin Walters <walters verbum org>
Date: Wed Sep 22 13:31:15 2010 -0400
closure: Add missing JS_EndRequest in error path
https://bugzilla.gnome.org/show_bug.cgi?id=630423
gi/closure.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/closure.c b/gi/closure.c
index 7cf084c..3eb5a33 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]