No need to enter the monitor in our destructor. Bug 371374 followup, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@221054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user