public void Dispose() { _securityManager.PopContextPrincipal(_cx); _contextStack.Pop(); JS_EndRequest(_cx); }
public void Dispose() { nsIScriptSecurityManager securityManager = Xpcom.GetService <nsIScriptSecurityManager>("@mozilla.org/scriptsecuritymanager;1"); securityManager.PopContextPrincipal(cx); nsIJSContextStack contextStack = Xpcom.GetService <nsIJSContextStack>("@mozilla.org/js/xpc/ContextStack;1"); contextStack.Pop(); JS_EndRequest(cx); }
public void Dispose() { nsIJSContextStack contextStack = Xpcom.GetService<nsIJSContextStack>("@mozilla.org/js/xpc/ContextStack;1"); contextStack.Pop(); // free the memory allocated for the fake stack frame Marshal.FreeHGlobal(Marshal.ReadIntPtr(cx, OfsetOfFP)); // end the request, destroy the context JS_EndRequest(cx); JS_DestroyContextNoGC(cx); }
public void Dispose() { _contextStack.Pop(); SpiderMonkey.JS_EndRequest(_cx); }
public void Dispose() { nsIJSContextStack contextStack = Xpcom.GetService <nsIJSContextStack>("@mozilla.org/js/xpc/ContextStack;1"); contextStack.Pop(); }