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:
sayrer%gmail.com 2008-01-23 05:20:14 +00:00
parent 06275cd668
commit 3c874fb0e3

View File

@ -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 {