shut down a selection's autoscroll timer in the selection's destructor. bug 43470. r=saari@netscape.com

This commit is contained in:
danm%netscape.com 2000-07-28 03:48:26 +00:00
parent af34e4532e
commit 92d0a3a892
3 changed files with 12 additions and 3 deletions

View File

@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
}
setAnchorFocusRange(-1);
NS_IF_RELEASE(mAutoScrollTimer);
if (mAutoScrollTimer) {
mAutoScrollTimer->Stop();
NS_RELEASE(mAutoScrollTimer);
}
}

View File

@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
}
setAnchorFocusRange(-1);
NS_IF_RELEASE(mAutoScrollTimer);
if (mAutoScrollTimer) {
mAutoScrollTimer->Stop();
NS_RELEASE(mAutoScrollTimer);
}
}

View File

@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
}
setAnchorFocusRange(-1);
NS_IF_RELEASE(mAutoScrollTimer);
if (mAutoScrollTimer) {
mAutoScrollTimer->Stop();
NS_RELEASE(mAutoScrollTimer);
}
}