Bug 336961: fix DOM Inspector leak, patch by Regis Caspar <regis.caspar+bz@gmail.com>, r=jag, sr=neil

This commit is contained in:
gavin%gavinsharp.com 2006-05-29 20:32:36 +00:00
Родитель 675e5daf18
Коммит 173e1c9552
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -54,6 +54,7 @@ const kPromptServiceCID = "@mozilla.org/embedcomp/prompt-service;1";
//////////////////////////////////////////////////
window.addEventListener("load", DOMViewer_initialize, false);
window.addEventListener("unload", DOMViewer_destroy, false);
function DOMViewer_initialize()
{
@ -61,6 +62,12 @@ function DOMViewer_initialize()
viewer.initialize(parent.FrameExchange.receiveData(window));
}
function DOMViewer_destroy()
{
PrefUtils.removeObserver("inspector", PrefChangeObserver);
viewer = null;
}
////////////////////////////////////////////////////////////////////////////
//// class DOMViewer