delete mFrameManager; delete mStyleSet;
PresShell::~PresShell(){  if (mStyleSet) {    NS_NOTREACHED("Someone did not call nsIPresShell::destroy");    Destroy();  }  NS_ASSERTION(mCurrentEventContentStack.Count() == 0,               "Huh, event content left on the stack in pres shell dtor!");  NS_ASSERTION(mFirstDOMEventRequest == nsnull &&               mLastDOMEventRequest == nsnull &&               mFirstAttributeRequest == nsnull &&               mLastAttributeRequest == nsnull &&               mFirstCallbackEventRequest == nsnull &&               mLastCallbackEventRequest == nsnull,               "post-reflow queues not empty.  This means we're leaking");  delete mFrameConstructor;  NS_IF_RELEASE(mCurrentEventContent);  // if we allocated any stack memory free it.  FreeDynamicStack();  NS_IF_RELEASE(mPresContext);  NS_IF_RELEASE(mDocument);}