Bug 803665 - part 0 - make nsTimeout properly initialize its fields; r=bz

This commit is contained in:
Nathan Froyd 2012-11-01 12:27:37 -04:00
parent 8e91ad7ba1
commit dfa6661109

View File

@ -533,6 +533,14 @@ private:
NS_IMPL_ISUPPORTS2(nsGlobalWindowObserver, nsIObserver, nsIInterfaceRequestor) NS_IMPL_ISUPPORTS2(nsGlobalWindowObserver, nsIObserver, nsIInterfaceRequestor)
nsTimeout::nsTimeout() nsTimeout::nsTimeout()
: mCleared(false),
mRunning(false),
mIsInterval(false),
mPublicId(0),
mInterval(0),
mFiringDepth(0),
mNestingLevel(0),
mPopupState(openAllowed)
{ {
#ifdef DEBUG_jst #ifdef DEBUG_jst
{ {
@ -542,8 +550,6 @@ nsTimeout::nsTimeout()
} }
#endif #endif
memset(this, 0, sizeof(*this));
MOZ_COUNT_CTOR(nsTimeout); MOZ_COUNT_CTOR(nsTimeout);
} }