[gjs] context: enter request before GC in gjs_context_dispose
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] context: enter request before GC in gjs_context_dispose
- Date: Wed, 19 Feb 2014 16:35:39 +0000 (UTC)
commit 0356f7b837e18842be1bbb03f52bb7493b7b990f
Author: Tim Lunn <tim feathertop org>
Date: Fri Feb 14 10:57:39 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..fb73df4 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -338,11 +338,13 @@ gjs_context_dispose(GObject *object)
gjs_debug(GJS_DEBUG_CONTEXT,
"Destroying JS context");
+ JS_BeginRequest(js_context->context);
/* Do a full GC here before tearing down, since once we do
* that we may not have the JS_GetPrivate() to access the
* context
*/
JS_GC(js_context->runtime);
+ JS_EndRequest(js_context->context);
js_context->destroying = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]