Bug 1204784: Upgrade the 'event queue is empty' assertion to a fatal one. r=froydnj

This commit is contained in:
Kyle Huey 2016-01-15 10:04:14 -08:00
parent baf6c5c533
commit dc668298f3

View File

@ -32,8 +32,7 @@ nsEventQueue::~nsEventQueue()
{
// It'd be nice to be able to assert that no one else is holding the lock,
// but NSPR doesn't really expose APIs for it.
NS_ASSERTION(IsEmpty(),
"Non-empty event queue being destroyed; events being leaked.");
MOZ_ASSERT(IsEmpty());
if (mHead) {
FreePage(mHead);