mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Fixes CantRenderReplacedElementEvent memory leak. b=203596, r+sr=dbaron, a=asa@mozilla.org
This commit is contained in:
parent
a46df7f6cc
commit
5042217cc2
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user