Bug 1259737 - Make sure BackgroundImpl.cpp's mBoundThread is not used in release builds. r=froydnj

This commit is contained in:
Jonathan Watt 2016-03-14 21:21:42 +00:00
parent 1d4102375a
commit bf8ece3f4f

View File

@ -341,11 +341,7 @@ class ChildImpl final : public BackgroundChildImpl
// create the background thread after application shutdown has started. // create the background thread after application shutdown has started.
static bool sShutdownHasStarted; static bool sShutdownHasStarted;
#ifdef RELEASE_BUILD #if defined(DEBUG) || !defined(RELEASE_BUILD)
#ifdef DEBUG
nsIThread* mBoundThread;
#endif
#else
nsIThread* mBoundThread; nsIThread* mBoundThread;
#endif #endif
@ -382,7 +378,9 @@ public:
} }
ChildImpl() ChildImpl()
#if defined(DEBUG) || !defined(RELEASE_BUILD)
: mBoundThread(nullptr) : mBoundThread(nullptr)
#endif
#ifdef DEBUG #ifdef DEBUG
, mActorDestroyed(false) , mActorDestroyed(false)
#endif #endif