Bug 29507. Clean up PresShell refcounting. r=troy

This commit is contained in:
waterson%netscape.com 2000-04-05 05:17:36 +00:00
Родитель 83c1ecb571
Коммит 6ae5675fa2
2 изменённых файлов: 2 добавлений и 6 удалений

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

@ -3623,7 +3623,7 @@ nsXULDocument::StartLayout(void)
PRInt32 count = GetNumberOfShells();
for (PRInt32 i = 0; i < count; i++) {
nsIPresShell* shell = GetShellAt(i);
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(GetShellAt(i));
if (nsnull == shell)
continue;
@ -3673,8 +3673,6 @@ nsXULDocument::StartLayout(void)
// reflow. Otherwise, we'll get into an trouble trying to
// create kids before the root frame is established.
shell->BeginObservingDocument();
NS_RELEASE(shell);
}
return NS_OK;
}

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

@ -3623,7 +3623,7 @@ nsXULDocument::StartLayout(void)
PRInt32 count = GetNumberOfShells();
for (PRInt32 i = 0; i < count; i++) {
nsIPresShell* shell = GetShellAt(i);
nsCOMPtr<nsIPresShell> shell = getter_AddRefs(GetShellAt(i));
if (nsnull == shell)
continue;
@ -3673,8 +3673,6 @@ nsXULDocument::StartLayout(void)
// reflow. Otherwise, we'll get into an trouble trying to
// create kids before the root frame is established.
shell->BeginObservingDocument();
NS_RELEASE(shell);
}
return NS_OK;
}