Fixed memory leak in style change code

This commit is contained in:
vidur%netscape.com 1998-09-26 00:06:26 +00:00
parent 53e684bc7f
commit 9f8023578d
2 changed files with 4 additions and 0 deletions

View File

@ -520,4 +520,6 @@ nsHTMLContainerFrame::StyleChangeReflow(nsIPresContext& aPresContext,
shell->AppendReflowCommand(reflowCmd);
NS_RELEASE(reflowCmd);
}
NS_RELEASE(shell);
}

View File

@ -520,4 +520,6 @@ nsHTMLContainerFrame::StyleChangeReflow(nsIPresContext& aPresContext,
shell->AppendReflowCommand(reflowCmd);
NS_RELEASE(reflowCmd);
}
NS_RELEASE(shell);
}