[PATCH] moved release of dom_window to right place

Marcus Meissner marcus at jet.franken.de
Thu Oct 26 01:14:01 CDT 2006


---

 dlls/mshtml/olecmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

05fcd90ce34e23cd0c52af4239bce577bd9bb865
diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c
index fa4afb4..7e6e0cf 100644
--- a/dlls/mshtml/olecmd.c
+++ b/dlls/mshtml/olecmd.c
@@ -422,7 +422,6 @@ static void setup_ns_editing(NSContainer
     }
 
     nsres = nsIWebBrowser_GetContentDOMWindow(This->webbrowser, &dom_window);
-    nsIDOMWindow_Release(dom_window);
     if(NS_FAILED(nsres)) {
         ERR("Could not get content DOM window: %08x\n", nsres);
         nsIEditingSession_Release(editing_session);
@@ -431,6 +430,7 @@ static void setup_ns_editing(NSContainer
 
     nsres = nsIEditingSession_MakeWindowEditable(editing_session, dom_window, NULL, FALSE);
     nsIEditingSession_Release(editing_session);
+    nsIDOMWindow_Release(dom_window);
     if(NS_FAILED(nsres)) {
         ERR("MakeWindowEditable failed: %08x\n", nsres);
         return;
-- 
1.2.4



More information about the wine-patches mailing list