No need to enter the monitor in our destructor. Bug 371374 followup, r+sr=darin

This commit is contained in:
bzbarsky%mit.edu 2007-02-28 02:28:53 +00:00
parent 2f31c66385
commit a4d181a6ee

View File

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