Bug 411249 Top crash [@ jsds_ScriptHookProc][@jsds_ScriptHookProc(JSDContext*, JSDScript*, int, void*)] on shutdown with Firebug 1.1.0b10 installed r=gijs a=beltzner

This commit is contained in:
timeless@mozdev.org 2008-01-31 11:12:47 -08:00
Родитель ce2e4560ea
Коммит 1d2542004c
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -464,6 +464,15 @@ jsds_FilterHook (JSDContext *jsdc, JSDThreadState *state)
JS_STATIC_DLL_CALLBACK (void)
jsds_NotifyPendingDeadScripts (JSContext *cx)
{
/* Bug 411249, we can't drop the script hook.
* Even if we could drop the script hook, jsds_GCCallbackProc
* is never cleared, so it would call us anyway.
*
* If there's no gJsds, then we can't do anything.
*/
if (!gJsds)
return;
nsCOMPtr<jsdIScriptHook> hook = 0;
gJsds->GetScriptHook (getter_AddRefs(hook));