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:
parent
9b3fc28076
commit
3f44a70bba
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user