Bug 986379 - Console crash for a mTimer set to null, r=ehsan

This commit is contained in:
Andrea Marchesini 2014-03-21 16:57:54 +00:00
parent 711f812b8a
commit 23d928823f

View File

@ -918,7 +918,7 @@ Console::Notify(nsITimer *timer)
delete data;
}
if (mQueuedCalls.isEmpty()) {
if (mQueuedCalls.isEmpty() && mTimer) {
mTimer->Cancel();
mTimer = nullptr;
}