From 9f8023578de663a89b9c8d9010ddac8e52796918 Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Sat, 26 Sep 1998 00:06:26 +0000 Subject: [PATCH] Fixed memory leak in style change code --- layout/generic/nsHTMLContainerFrame.cpp | 2 ++ layout/html/base/src/nsHTMLContainerFrame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layout/generic/nsHTMLContainerFrame.cpp b/layout/generic/nsHTMLContainerFrame.cpp index 2c545b3f4223..642322f05a3f 100644 --- a/layout/generic/nsHTMLContainerFrame.cpp +++ b/layout/generic/nsHTMLContainerFrame.cpp @@ -520,4 +520,6 @@ nsHTMLContainerFrame::StyleChangeReflow(nsIPresContext& aPresContext, shell->AppendReflowCommand(reflowCmd); NS_RELEASE(reflowCmd); } + + NS_RELEASE(shell); } diff --git a/layout/html/base/src/nsHTMLContainerFrame.cpp b/layout/html/base/src/nsHTMLContainerFrame.cpp index 2c545b3f4223..642322f05a3f 100644 --- a/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -520,4 +520,6 @@ nsHTMLContainerFrame::StyleChangeReflow(nsIPresContext& aPresContext, shell->AppendReflowCommand(reflowCmd); NS_RELEASE(reflowCmd); } + + NS_RELEASE(shell); }