зеркало из https://github.com/mozilla/pjs.git
Release timeouts when a cached page is evicted from session history. Bug 302290, r=darin sr=jst a=brendan
This commit is contained in:
Родитель
3dc4b0228b
Коммит
0b742bb6a7
|
@ -6477,6 +6477,15 @@ WindowStateHolder::WindowStateHolder(JSContext *cx, JSObject *aObject,
|
|||
|
||||
WindowStateHolder::~WindowStateHolder()
|
||||
{
|
||||
// Release the timeouts, if we still have any.
|
||||
nsTimeout *timeout = mSavedTimeouts;
|
||||
while (timeout) {
|
||||
nsTimeout *next = timeout->mNext;
|
||||
NS_ASSERTION(!timeout->mTimer, "live timer in a saved window state");
|
||||
timeout->Release(nsnull);
|
||||
timeout = next;
|
||||
}
|
||||
|
||||
::JS_RemoveRootRT(mRuntime, &mJSObj);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче