mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-04 23:28:49 +00:00
Yet another attempt to get the garbage collector code right. Patch worked out with Bret McDanel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4094 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ae8d2e924f
commit
1a99ecc6e9
@ -2411,6 +2411,8 @@ static void js_parse_and_execute(switch_core_session_t *session, char *input_cod
|
|||||||
|
|
||||||
if (cx) {
|
if (cx) {
|
||||||
eval_some_js(script, cx, javascript_global_object, &rval);
|
eval_some_js(script, cx, javascript_global_object, &rval);
|
||||||
|
JS_EndRequest(cx);
|
||||||
|
JS_MaybeGC(cx);
|
||||||
JS_DestroyContext(cx);
|
JS_DestroyContext(cx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user