From 435d90974917e3af1b795f3795c066655af2b42f Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Mon, 30 Nov 1998 08:05:45 +0000 Subject: [PATCH] bug in editor. blowing up a little :( --- xpfe/xpviewer/src/nsBrowserWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpfe/xpviewer/src/nsBrowserWindow.cpp b/xpfe/xpviewer/src/nsBrowserWindow.cpp index d1ea983ba63..08f249de866 100644 --- a/xpfe/xpviewer/src/nsBrowserWindow.cpp +++ b/xpfe/xpviewer/src/nsBrowserWindow.cpp @@ -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