зеркало из https://github.com/mozilla/pjs.git
Fixes CantRenderReplacedElementEvent memory leak. b=203596, r+sr=dbaron, a=asa@mozilla.org
This commit is contained in:
Родитель
5726a206f5
Коммит
d9f7fd70f9
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче