Fix for bug 4001, crashing immediately or on exit after tabbing to end of doc. A: chofmann.

This commit is contained in:
joki%netscape.com 1999-04-09 20:35:18 +00:00
parent 4953a3a830
commit 56f3dc11a6
2 changed files with 0 additions and 4 deletions

View File

@ -1779,7 +1779,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
shell = (nsIWebShell*)mChildren.ElementAt(i);
if (shell == aFocusedWebShell) {
if (++i < n) {
NS_RELEASE(shell);
shell = (nsIWebShell*)mChildren.ElementAt(i);
shell->SetFocus();
break;
@ -1790,7 +1789,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
}
}
}
NS_IF_RELEASE(shell);
return NS_OK;
}

View File

@ -1779,7 +1779,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
shell = (nsIWebShell*)mChildren.ElementAt(i);
if (shell == aFocusedWebShell) {
if (++i < n) {
NS_RELEASE(shell);
shell = (nsIWebShell*)mChildren.ElementAt(i);
shell->SetFocus();
break;
@ -1790,7 +1789,6 @@ nsWebShell::FocusAvailable(nsIWebShell* aFocusedWebShell)
}
}
}
NS_IF_RELEASE(shell);
return NS_OK;
}