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.
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