mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
shut down a selection's autoscroll timer in the selection's destructor. bug 43470. r=saari@netscape.com
This commit is contained in:
parent
af34e4532e
commit
92d0a3a892
@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
|
||||
}
|
||||
setAnchorFocusRange(-1);
|
||||
|
||||
NS_IF_RELEASE(mAutoScrollTimer);
|
||||
if (mAutoScrollTimer) {
|
||||
mAutoScrollTimer->Stop();
|
||||
NS_RELEASE(mAutoScrollTimer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
|
||||
}
|
||||
setAnchorFocusRange(-1);
|
||||
|
||||
NS_IF_RELEASE(mAutoScrollTimer);
|
||||
if (mAutoScrollTimer) {
|
||||
mAutoScrollTimer->Stop();
|
||||
NS_RELEASE(mAutoScrollTimer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3110,7 +3110,10 @@ nsDOMSelection::~nsDOMSelection()
|
||||
}
|
||||
setAnchorFocusRange(-1);
|
||||
|
||||
NS_IF_RELEASE(mAutoScrollTimer);
|
||||
if (mAutoScrollTimer) {
|
||||
mAutoScrollTimer->Stop();
|
||||
NS_RELEASE(mAutoScrollTimer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user