From 8d1c981254d90e8afd5da82939a402c067cba4ae Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 15 May 2014 09:35:00 -0400 Subject: [PATCH] Bug 994090 - Use do_CreateInstance in nsWindowMemoryReport. r=smaug --- dom/base/nsWindowMemoryReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/nsWindowMemoryReporter.cpp b/dom/base/nsWindowMemoryReporter.cpp index 8280ec05025a..109b24b79098 100644 --- a/dom/base/nsWindowMemoryReporter.cpp +++ b/dom/base/nsWindowMemoryReporter.cpp @@ -688,7 +688,7 @@ nsWindowMemoryReporter::AsyncCheckForGhostWindows() int32_t timeSinceLastCheck = (TimeStamp::NowLoRes() - mLastCheckForGhostWindows).ToSeconds(); int32_t timerDelay = (kTimeBetweenChecks - std::min(timeSinceLastCheck, kTimeBetweenChecks)) * PR_MSEC_PER_SEC; - CallCreateInstance("@mozilla.org/timer;1", getter_AddRefs(mCheckTimer)); + mCheckTimer = do_CreateInstance("@mozilla.org/timer;1"); if (mCheckTimer) { mCheckTimer->InitWithFuncCallback(CheckTimerFired, nullptr,