mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1259737 - Make sure BackgroundImpl.cpp's mBoundThread is not used in release builds. r=froydnj
This commit is contained in:
parent
1d4102375a
commit
bf8ece3f4f
@ -341,11 +341,7 @@ class ChildImpl final : public BackgroundChildImpl
|
||||
// create the background thread after application shutdown has started.
|
||||
static bool sShutdownHasStarted;
|
||||
|
||||
#ifdef RELEASE_BUILD
|
||||
#ifdef DEBUG
|
||||
nsIThread* mBoundThread;
|
||||
#endif
|
||||
#else
|
||||
#if defined(DEBUG) || !defined(RELEASE_BUILD)
|
||||
nsIThread* mBoundThread;
|
||||
#endif
|
||||
|
||||
@ -382,7 +378,9 @@ public:
|
||||
}
|
||||
|
||||
ChildImpl()
|
||||
#if defined(DEBUG) || !defined(RELEASE_BUILD)
|
||||
: mBoundThread(nullptr)
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
, mActorDestroyed(false)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user