Fix two leaks courtesy evaughan.

git-svn-id: svn://10.0.0.236/trunk@52512 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 1999-11-02 05:36:08 +00:00
parent ddf6490f7b
commit b2a8f1f15e
2 changed files with 4 additions and 4 deletions

View File

@ -2150,8 +2150,8 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresContext* aPresCo
// build a scrollframe
if (!isPaginated && isScrollable) {
nsIFrame* newScrollFrame = nsnull;
nsIDocument* document;
aDocElement->GetDocument(document);
nsCOMPtr<nsIDocument> document;
aDocElement->GetDocument(*getter_AddRefs(document));
BeginBuildingScrollFrame( aPresContext,
aState,

View File

@ -2150,8 +2150,8 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresContext* aPresCo
// build a scrollframe
if (!isPaginated && isScrollable) {
nsIFrame* newScrollFrame = nsnull;
nsIDocument* document;
aDocElement->GetDocument(document);
nsCOMPtr<nsIDocument> document;
aDocElement->GetDocument(*getter_AddRefs(document));
BeginBuildingScrollFrame( aPresContext,
aState,