When stopping a TextTimer Cancel(...) the nsTimer before releasing it...

git-svn-id: svn://10.0.0.236/trunk@6381 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com 1998-07-24 05:41:34 +00:00
parent 9b3fc28076
commit 3f44a70bba

View File

@ -355,7 +355,10 @@ void TextTimer::Start()
void TextTimer::Stop()
{
NS_IF_RELEASE(mTimer);
if (nsnull != mTimer) {
mTimer->Cancel();
NS_RELEASE(mTimer);
}
}
static NS_DEFINE_IID(kITimerCallbackIID, NS_ITIMERCALLBACK_IID);