protect nsWebShell's destructor from being called recursively a little earlier in the destructor. fixes a crash (bug 7157).

git-svn-id: svn://10.0.0.236/trunk@33351 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
1999-06-01 23:02:15 +00:00
parent e9bb07a3af
commit 07a75789a0
2 changed files with 6 additions and 6 deletions

View File

@@ -554,11 +554,11 @@ nsWebShell::~nsWebShell()
// Cancel any timers that were set for this loader.
CancelRefreshURLTimers();
++mRefCnt; // following releases can cause this destructor to be called
// recursively if the refcount is allowed to remain 0
NS_IF_RELEASE(mWindow);
NS_IF_RELEASE(mThreadEventQueue);
++mRefCnt; // hack will come back to this (pinkerton, scc)
NS_IF_RELEASE(mContentViewer);
NS_IF_RELEASE(mDeviceContext);
NS_IF_RELEASE(mPrefs);