Fixes CantRenderReplacedElementEvent memory leak. b=203596, r+sr=dbaron, a=asa@mozilla.org

This commit is contained in:
dougt%meer.net 2003-05-17 01:10:50 +00:00
parent a46df7f6cc
commit 5042217cc2
2 changed files with 4 additions and 2 deletions

View File

@ -1137,8 +1137,9 @@ FrameManager::DequeuePostedEventFor(nsIFrame* aFrame)
NS_ASSERTION(plqueue,
"will crash soon due to event holding dangling pointer to frame");
if (plqueue) {
// Removes the event and destroys it
// Remove the event and then destroy it
PL_DequeueEvent(tmp, plqueue);
PL_DestroyEvent(tmp);
}
}
}

View File

@ -1137,8 +1137,9 @@ FrameManager::DequeuePostedEventFor(nsIFrame* aFrame)
NS_ASSERTION(plqueue,
"will crash soon due to event holding dangling pointer to frame");
if (plqueue) {
// Removes the event and destroys it
// Remove the event and then destroy it
PL_DequeueEvent(tmp, plqueue);
PL_DestroyEvent(tmp);
}
}
}