put delete of editor data earlier in deletion process (as approved in bug 180146); r=cmanske, sr=sfraser

git-svn-id: svn://10.0.0.236/trunk@134192 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brade%netscape.com
2002-11-20 14:03:01 +00:00
parent 35d0c3fc67
commit 4a18d9ecae

View File

@@ -2965,6 +2965,9 @@ nsDocShell::Destroy()
mDocLoader->SetContainer(nsnull);
}
delete mEditorData;
mEditorData = 0;
// Save the state of the current document, before destroying the window.
// This is needed to capture the state of a frameset when the new document
// causes the frameset to be destroyed...
@@ -3009,9 +3012,6 @@ nsDocShell::Destroy()
mContentListener->SetParentContentListener(nsnull);
NS_RELEASE(mContentListener);
}
delete mEditorData;
mEditorData = 0;
return NS_OK;
}