[gjs] context: enter request before GC in gjs_context_dispose



commit adb6c1ff9f33299564f36cf181062aa29a2629a8
Author: Tim Lunn <tim feathertop org>
Date:   Tue Feb 11 15:52:29 2014 +1100

    context: enter request before GC in gjs_context_dispose
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724097

 gjs/context.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 1ea0a3b..7ba7664 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -335,6 +335,8 @@ gjs_context_dispose(GObject *object)
 
     if (js_context->context != NULL) {
 
+        JSAutoRequest ar(js_context->context);
+
         gjs_debug(GJS_DEBUG_CONTEXT,
                   "Destroying JS context");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]