mshtml: Moved release of dom_window to right place.

This commit is contained in:
Marcus Meissner 2006-10-26 08:14:01 +02:00 committed by Alexandre Julliard
parent 1582f58036
commit 2074a2314a
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,6 @@ static void setup_ns_editing(NSContainer *This)
} }
nsres = nsIWebBrowser_GetContentDOMWindow(This->webbrowser, &dom_window); nsres = nsIWebBrowser_GetContentDOMWindow(This->webbrowser, &dom_window);
nsIDOMWindow_Release(dom_window);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("Could not get content DOM window: %08x\n", nsres); ERR("Could not get content DOM window: %08x\n", nsres);
nsIEditingSession_Release(editing_session); nsIEditingSession_Release(editing_session);
@ -431,6 +430,7 @@ static void setup_ns_editing(NSContainer *This)
nsres = nsIEditingSession_MakeWindowEditable(editing_session, dom_window, NULL, FALSE); nsres = nsIEditingSession_MakeWindowEditable(editing_session, dom_window, NULL, FALSE);
nsIEditingSession_Release(editing_session); nsIEditingSession_Release(editing_session);
nsIDOMWindow_Release(dom_window);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("MakeWindowEditable failed: %08x\n", nsres); ERR("MakeWindowEditable failed: %08x\n", nsres);
return; return;