mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 994090 - Use do_CreateInstance in nsWindowMemoryReport. r=smaug
This commit is contained in:
parent
ba123c375e
commit
8d1c981254
@ -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<nsITimer>("@mozilla.org/timer;1", getter_AddRefs(mCheckTimer));
|
||||
mCheckTimer = do_CreateInstance("@mozilla.org/timer;1");
|
||||
|
||||
if (mCheckTimer) {
|
||||
mCheckTimer->InitWithFuncCallback(CheckTimerFired, nullptr,
|
||||
|
Loading…
Reference in New Issue
Block a user