Re: mshtml: Handle the failure case in get_nsstyle_attr.
18 Jul
2011
18 Jul
'11
10:39 a.m.
Hi Gerald, On 07/15/11 22:49, Gerald Pfeifer wrote:
--- dlls/mshtml/htmlstyle.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c index cd1f6b5..3e76e61 100644 --- a/dlls/mshtml/htmlstyle.c +++ b/dlls/mshtml/htmlstyle.c @@ -468,6 +468,8 @@ HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR
nsAString_GetData(&str_value, &value); hres = nsstyle_to_bstr(value, flags, p); + if( FAILED(hres) ) + return hres; nsAString_Finish(&str_value);
Good catch, but you add a leak here. Jacek
5264
Age (days ago)
5264
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban