mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
before releasing the timer in the destructor, we Cancel() the timer per vidur's
suggestion.
This commit is contained in:
parent
4258da0352
commit
f34c3cb961
@ -49,7 +49,12 @@ nsViewManager :: nsViewManager()
|
||||
|
||||
nsViewManager :: ~nsViewManager()
|
||||
{
|
||||
NS_IF_RELEASE(mTimer);
|
||||
if (nsnull != mTimer)
|
||||
{
|
||||
mTimer->Cancel(); //XXX this should not be necessary. MMP
|
||||
NS_RELEASE(mTimer);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mRootWindow);
|
||||
NS_IF_RELEASE(mRootView);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user