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:
Andrew McCreight 2015-06-04 14:41:31 -07:00
parent 3867e1724e
commit 36211f1f19

View File

@ -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;