mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
No need to enter the monitor in our destructor. Bug 371374 followup, r+sr=darin
This commit is contained in:
parent
2f31c66385
commit
a4d181a6ee
@ -58,14 +58,12 @@ nsEventQueue::nsEventQueue()
|
||||
|
||||
nsEventQueue::~nsEventQueue()
|
||||
{
|
||||
{
|
||||
nsAutoMonitor mon(mMonitor);
|
||||
// It'd be nice to be able to assert that no one else is holding the monitor,
|
||||
// but NSPR doesn't really expose APIs for it.
|
||||
NS_ASSERTION(IsEmpty(), "Non-empty event queue being destroyed; events being leaked.");
|
||||
|
||||
NS_ASSERTION(IsEmpty(), "Non-empty event queue being destroyed; events being leaked.");
|
||||
|
||||
if (mHead)
|
||||
FreePage(mHead);
|
||||
}
|
||||
if (mHead)
|
||||
FreePage(mHead);
|
||||
|
||||
if (mMonitor)
|
||||
nsAutoMonitor::DestroyMonitor(mMonitor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user