before releasing the timer in the destructor, we Cancel() the timer per vidur's

suggestion.
This commit is contained in:
michaelp 1998-05-05 17:29:08 +00:00
parent 4258da0352
commit f34c3cb961

View File

@ -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);