зеркало из https://github.com/mozilla/pjs.git
Fix crasher bug when typing in the URL bar, bug 61452. Need to null out a global when we delete it. r=pinkerton
This commit is contained in:
Родитель
2f644b83f5
Коммит
b4589a2bdf
|
@ -82,8 +82,10 @@ nsXBLWindowHandler :: nsXBLWindowHandler (nsIDOMElement* aElement, nsIDOMEventRe
|
|||
nsXBLWindowHandler :: ~nsXBLWindowHandler ( )
|
||||
{
|
||||
--sRefCnt;
|
||||
if ( !sRefCnt )
|
||||
if ( !sRefCnt ) {
|
||||
delete sXBLSpecialDocInfo;
|
||||
sXBLSpecialDocInfo = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -82,8 +82,10 @@ nsXBLWindowHandler :: nsXBLWindowHandler (nsIDOMElement* aElement, nsIDOMEventRe
|
|||
nsXBLWindowHandler :: ~nsXBLWindowHandler ( )
|
||||
{
|
||||
--sRefCnt;
|
||||
if ( !sRefCnt )
|
||||
if ( !sRefCnt ) {
|
||||
delete sXBLSpecialDocInfo;
|
||||
sXBLSpecialDocInfo = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче