]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Yet another attempt to get the garbage collector code right. Patch worked out with...
authorMichael Jerris <mike@jerris.com>
Tue, 30 Jan 2007 18:00:58 +0000 (18:00 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 30 Jan 2007 18:00:58 +0000 (18:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4094 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index 62452977858f2114e04dc1877369124d8121633d..75eea522dd5f63f30e7bd19fbfd98fff560aad37 100644 (file)
@@ -2411,6 +2411,8 @@ static void js_parse_and_execute(switch_core_session_t *session, char *input_cod
 
        if (cx) {
                eval_some_js(script, cx, javascript_global_object, &rval);
+               JS_EndRequest(cx);
+               JS_MaybeGC(cx);
                JS_DestroyContext(cx);
        }
 }