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
Родитель 5726a206f5
Коммит d9f7fd70f9
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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);
}
}
}