mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1163006, part 3 - Clean up some cycle collector logger set up code. r=smaug
There's no need for the local variable.
This commit is contained in:
parent
3867e1724e
commit
36211f1f19
@ -3759,11 +3759,10 @@ nsCycleCollector::BeginCollection(ccType aCCType,
|
||||
|
||||
aManualListener = nullptr;
|
||||
if (!mLogger && mParams.LogThisCC(isShutdown)) {
|
||||
nsRefPtr<nsCycleCollectorLogger> logger = new nsCycleCollectorLogger();
|
||||
mLogger = new nsCycleCollectorLogger();
|
||||
if (mParams.AllTracesThisCC(isShutdown)) {
|
||||
logger->SetAllTraces();
|
||||
mLogger->SetAllTraces();
|
||||
}
|
||||
mLogger = logger.forget();
|
||||
}
|
||||
|
||||
bool forceGC = isShutdown;
|
||||
|
Loading…
Reference in New Issue
Block a user