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
This commit is contained in:
Adel Gadllah 2011-02-05 10:40:15 +01:00
parent 5bd40ff416
commit 32d59861a0
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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