Bug 1414318 - Turn off |StartWriter| in leak checking builds. r=mccr8

This commit is contained in:
Eric Rahm 2017-11-03 14:17:57 -07:00
parent 27c96362b9
commit 8df99bf08a

View File

@ -228,7 +228,8 @@ void RunWriter(void* arg)
// Setup destinationPath and tmpFilePath
nsCString destinationPath(static_cast<char*>(arg));
nsCString destinationPath;
destinationPath.Adopt(static_cast<char*>(arg));
nsAutoCString tmpFilePath;
tmpFilePath.Append(destinationPath);
tmpFilePath.AppendLiteral(".tmp");
@ -361,12 +362,12 @@ nsTerminator::Start()
{
MOZ_ASSERT(!mInitialized);
StartWatchdog();
#if !defined(DEBUG)
// Only allow nsTerminator to write on non-debug builds so we don't get leak warnings on
// shutdown for intentional leaks (see bug 1242084). This will be enabled again by bug
// 1255484 when 1255478 lands.
#if !defined(NS_FREE_PERMANENT_DATA)
// Only allow nsTerminator to write on non-leak-checked builds so we don't
// get leak warnings on shutdown for intentional leaks (see bug 1242084).
// This will be enabled again by bug 1255484 when 1255478 lands.
StartWriter();
#endif // !defined(DEBUG)
#endif // !defined(NS_FREE_PERMANENT_DATA)
mInitialized = true;
}