mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1414318 - Turn off |StartWriter| in leak checking builds. r=mccr8
This commit is contained in:
parent
27c96362b9
commit
8df99bf08a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user