[gnome-shell] shell_global_maybe_gc: Call gjs_context_maybe_gc instead of JS_MaybeGC



commit 32d59861a0053be04add64f98581acd22fedf250
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Feb 5 10:40:15 2011 +0100

    shell_global_maybe_gc: Call gjs_context_maybe_gc instead of JS_MaybeGC
    
    This handles native glibc memory allocations better see:
    https://bugzilla.gnome.org/show_bug.cgi?id=640790
    
    Also bump the minimum gjs version to 0.7.11
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640781

 configure.ac       |    2 +-
 src/shell-global.c |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 12b4723..5c25a60 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,7 +62,7 @@ AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
 
 CLUTTER_MIN_VERSION=1.5.15
 GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
-GJS_MIN_VERSION=0.7.8
+GJS_MIN_VERSION=0.7.11
 MUTTER_MIN_VERSION=2.91.4
 GTK_MIN_VERSION=2.99.3
 GIO_MIN_VERSION=2.25.9
diff --git a/src/shell-global.c b/src/shell-global.c
index 68ee619..ec00690 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -1228,9 +1228,7 @@ shell_global_gc (ShellGlobal *global)
 void
 shell_global_maybe_gc (ShellGlobal *global)
 {
-  JSContext *context = gjs_context_get_native_context (global->js_context);
-
-  JS_MaybeGC (context);
+  gjs_context_maybe_gc (global->js_context);
 }
 
 void



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