mshtml: Handle removeAttribute("filter") calls on detached style objects.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Jacek Caban 2019-03-27 18:52:34 +01:00 committed by Alexandre Julliard
parent 3886fa60e0
commit 3dd1fd9c8b
1 changed files with 2 additions and 0 deletions

View File

@ -3158,6 +3158,8 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
/* filter property is a special case */
if(style_entry->compat_dispid == DISPID_IHTMLSTYLE_FILTER) {
if(!This->elem)
return E_UNEXPECTED;
*pfSuccess = variant_bool(This->elem->filter && *This->elem->filter);
heap_free(This->elem->filter);
This->elem->filter = NULL;