bug in editor. blowing up a little :(

This commit is contained in:
mjudge%netscape.com 1998-11-30 08:05:45 +00:00
parent 9c50031048
commit f683b1c7bd

View File

@ -2847,7 +2847,7 @@ nsBrowserWindow::DoEditorMode(nsIWebShell *aWebShell)
if (NS_SUCCEEDED(doc->QueryInterface(kIDOMDocumentIID, (void **)&domDoc)))
{ //returns an addreffed domdocument
nsIEditor *editor;
if (NS_SUCCEEDED(nsRepository::CreateInstance(kIEditFactoryIID, nsnull, kIEditorIID, (void **)editor)))
if (NS_SUCCEEDED(nsRepository::CreateInstance(kIEditFactoryIID, nsnull, kIEditorIID, (void **)&editor)))
{
editor->Init(domDoc);
AddEditor(editor); //new call to set the editor interface this will addref