Bug 633016 - Prevent jsdScripts from leaking by always hooking script creation/destruction (r=gal)

--HG--
extra : rebase_source : 93f446ba1cda0cc56659da9773ab99670d3516b8
This commit is contained in:
Steve Fink 2011-02-11 13:22:58 -08:00
parent 3784f462fa
commit d738f7dcea

View File

@ -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().
*/