From 311cd9d98edff697fd34df8a40fd69e25415de0a Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Sun, 18 Nov 2012 17:49:13 -0800 Subject: [PATCH] Bug 812935 - Fix undefined value error in memory reporter for web workers. r=khuey --HG-- extra : rebase_source : 7304009ade1e1560d7e66d0d4e0ab1da2f2a8448 --- dom/workers/WorkerPrivate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index d55dc6c82e5..2b2b8b1daa4 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -1561,9 +1561,10 @@ public: "the process of being destroyed"); NS_WARNING(message.get()); #endif + *static_cast(aData) = 0; return NS_OK; } - + if (!mWorkerPrivate->BlockAndCollectRuntimeStats(aIsQuick, aData)) { return NS_ERROR_FAILURE; }