[gjs/wip/xulrunner-1.9.3-rebase5: 11/26] closure: Add missing JS_EndRequest in error path



commit 8fadc5b04f881d6570542e6ef52d786429fb8fd4
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 22 13:31:15 2010 -0400

    closure: Add missing JS_EndRequest in error path

 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]