fixes nsIAtom leaks, bug # 25761, r=waterson

This commit is contained in:
beard%netscape.com 2000-02-15 01:17:18 +00:00
parent 644b47bdf5
commit b5072ce22c
2 changed files with 4 additions and 4 deletions

View File

@ -1282,7 +1282,6 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
nsIAtom* childList = nsnull;
PRInt32 childChange;
nsIFrame* child;
nsIAtom* frameType = nsnull;
do {
child = nsnull;
@ -1292,7 +1291,8 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
child->GetFrameState(&state);
if (NS_FRAME_OUT_OF_FLOW != (state & NS_FRAME_OUT_OF_FLOW)) {
// only do frames that are in flow
child->GetFrameType(&frameType);
nsCOMPtr<nsIAtom> frameType;
child->GetFrameType(getter_AddRefs(frameType));
if (nsLayoutAtoms::placeholderFrame == frameType) { // placeholder
// get out of flow frame and recurse there
nsIFrame* outOfFlowFrame = ((nsPlaceholderFrame*)child)->GetOutOfFlowFrame();

View File

@ -1282,7 +1282,6 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
nsIAtom* childList = nsnull;
PRInt32 childChange;
nsIFrame* child;
nsIAtom* frameType = nsnull;
do {
child = nsnull;
@ -1292,7 +1291,8 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
child->GetFrameState(&state);
if (NS_FRAME_OUT_OF_FLOW != (state & NS_FRAME_OUT_OF_FLOW)) {
// only do frames that are in flow
child->GetFrameType(&frameType);
nsCOMPtr<nsIAtom> frameType;
child->GetFrameType(getter_AddRefs(frameType));
if (nsLayoutAtoms::placeholderFrame == frameType) { // placeholder
// get out of flow frame and recurse there
nsIFrame* outOfFlowFrame = ((nsPlaceholderFrame*)child)->GetOutOfFlowFrame();