Jacek Caban : mshtml: Fixed leak in HTMLCurrentStyle_Create.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 3 09:43:08 CDT 2015
Module: wine
Branch: master
Commit: f5066488e9cb1ea5c7459f397e7da1598f22aa54
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5066488e9cb1ea5c7459f397e7da1598f22aa54
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jun 2 16:01:20 2015 +0200
mshtml: Fixed leak in HTMLCurrentStyle_Create.
---
dlls/mshtml/htmlcurstyle.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/mshtml/htmlcurstyle.c b/dlls/mshtml/htmlcurstyle.c
index f0b0d98..bf46cfc 100644
--- a/dlls/mshtml/htmlcurstyle.c
+++ b/dlls/mshtml/htmlcurstyle.c
@@ -1338,6 +1338,7 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
nsAString_Init(&nsempty_str, NULL);
nsres = nsIDOMWindow_GetComputedStyle(nsview, (nsIDOMElement*)elem->nselem, &nsempty_str, &nsstyle);
nsAString_Finish(&nsempty_str);
+ nsIDOMWindow_Release(nsview);
if(NS_FAILED(nsres)) {
ERR("GetComputedStyle failed: %08x\n", nsres);
return E_FAIL;
More information about the wine-cvs
mailing list