Bug 407201. Not dropping references for one shot timers on Fire. r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@243799 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
06275cd668
commit
3c874fb0e3
@ -412,7 +412,8 @@ void nsTimerImpl::Fire()
|
||||
|
||||
// If the callback didn't re-init the timer, and it's not a one-shot timer,
|
||||
// restore the callback state.
|
||||
if (mCallbackType == CALLBACK_TYPE_UNKNOWN && callbackType != TYPE_ONE_SHOT) {
|
||||
if (mCallbackType == CALLBACK_TYPE_UNKNOWN &&
|
||||
mType != TYPE_ONE_SHOT && !mCanceled) {
|
||||
mCallback = callback;
|
||||
mCallbackType = callbackType;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user