diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index 82afaad3736d..7d2e1cc0bfc6 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -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);