mshtml: Free the right variable (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Sun Nov 1 11:04:58 CST 2009
---
dlls/mshtml/htmlwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 5b07b0f..b278a5c 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -1562,7 +1562,7 @@ HRESULT HTMLWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTML
window->window_ref = heap_alloc(sizeof(windowref_t));
if(!window->window_ref) {
- heap_free(window->window_ref);
+ heap_free(window);
return E_OUTOFMEMORY;
}
--
1.6.5.2
More information about the wine-patches
mailing list