Jacek Caban : mshtml: Fixed leak in get_nsstyle_attr_nsval.
Alexandre Julliard
julliard at winehq.org
Thu Oct 6 14:46:53 CDT 2016
Module: wine
Branch: master
Commit: a6d35fdaa810de43c2f3f5d5dda422ab01f6e593
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6d35fdaa810de43c2f3f5d5dda422ab01f6e593
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Oct 6 17:04:02 2016 +0200
mshtml: Fixed leak in get_nsstyle_attr_nsval.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlstyle.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 7a4ebe3..a445bc2 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -485,15 +485,13 @@ static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, stylei
nsresult nsres;
nsAString_InitDepend(&str_name, style_tbl[sid].name);
-
nsres = nsIDOMCSSStyleDeclaration_GetPropertyValue(nsstyle, &str_name, value);
+ nsAString_Finish(&str_name);
if(NS_FAILED(nsres)) {
ERR("SetProperty failed: %08x\n", nsres);
return E_FAIL;
}
- nsAString_Finish(&str_name);
-
return S_OK;
}
More information about the wine-cvs
mailing list