mshtml: Moved release of dom_window to right place.
This commit is contained in:
parent
1582f58036
commit
2074a2314a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue