From 888de27782aa4a04e3b0c8ee6f88881ae3c03443 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 20 Nov 1998 23:10:47 +0000 Subject: [PATCH] removed a spurious GetContent that was the cause of a memory leak --- layout/html/table/src/nsTableColGroupFrame.cpp | 3 --- layout/tables/nsTableColGroupFrame.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/layout/html/table/src/nsTableColGroupFrame.cpp b/layout/html/table/src/nsTableColGroupFrame.cpp index a03e0579f6d9..fc0140cd40a4 100644 --- a/layout/html/table/src/nsTableColGroupFrame.cpp +++ b/layout/html/table/src/nsTableColGroupFrame.cpp @@ -65,9 +65,6 @@ nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChi // Process the newly added column frames for (nsIFrame* kidFrame = aChildList; nsnull != kidFrame; kidFrame->GetNextSibling(kidFrame)) { // Set the preliminary values for the column frame - nsIContent* kid; - kidFrame->GetContent(kid); - PRInt32 colIndex = mStartColIndex + mColCount; ((nsTableColFrame *)(kidFrame))->InitColFrame (colIndex); PRInt32 repeat = ((nsTableColFrame *)(kidFrame))->GetSpan(); diff --git a/layout/tables/nsTableColGroupFrame.cpp b/layout/tables/nsTableColGroupFrame.cpp index a03e0579f6d9..fc0140cd40a4 100644 --- a/layout/tables/nsTableColGroupFrame.cpp +++ b/layout/tables/nsTableColGroupFrame.cpp @@ -65,9 +65,6 @@ nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChi // Process the newly added column frames for (nsIFrame* kidFrame = aChildList; nsnull != kidFrame; kidFrame->GetNextSibling(kidFrame)) { // Set the preliminary values for the column frame - nsIContent* kid; - kidFrame->GetContent(kid); - PRInt32 colIndex = mStartColIndex + mColCount; ((nsTableColFrame *)(kidFrame))->InitColFrame (colIndex); PRInt32 repeat = ((nsTableColFrame *)(kidFrame))->GetSpan();