mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 633016 - Prevent jsdScripts from leaking by always hooking script creation/destruction (r=gal)
--HG-- extra : rebase_source : 93f446ba1cda0cc56659da9773ab99670d3516b8
This commit is contained in:
parent
3784f462fa
commit
d738f7dcea
@ -2580,7 +2580,12 @@ jsdService::ActivateDebugger (JSRuntime *rt)
|
||||
return rv;
|
||||
|
||||
xpc->InitClasses (cx, glob);
|
||||
|
||||
|
||||
/* Start watching for script creation/destruction and manage jsdScript
|
||||
* objects accordingly
|
||||
*/
|
||||
JSD_SetScriptHook (mCx, jsds_ScriptHookProc, NULL);
|
||||
|
||||
/* If any of these mFooHook objects are installed, do the required JSD
|
||||
* hookup now. See also, jsdService::SetFooHook().
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user