Bug 29507. Clean up PresShell refcounting. r=troy

git-svn-id: svn://10.0.0.236/trunk@65336 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 2000-04-05 05:17:36 +00:00
parent ade2ca3d55
commit c7054a1246
2 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}