From 2398d14e7c46e59a4561bd8b90540f57900ec576 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Fri, 21 Mar 2014 16:57:54 +0000 Subject: [PATCH] Bug 986379 - Console crash for a mTimer set to null, r=ehsan --- dom/base/Console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/Console.cpp b/dom/base/Console.cpp index f22ae0f9f93..3b5d738d13c 100644 --- a/dom/base/Console.cpp +++ b/dom/base/Console.cpp @@ -918,7 +918,7 @@ Console::Notify(nsITimer *timer) delete data; } - if (mQueuedCalls.isEmpty()) { + if (mQueuedCalls.isEmpty() && mTimer) { mTimer->Cancel(); mTimer = nullptr; }