mshtml: Fixed leak in fill_props.

This commit is contained in:
Jacek Caban 2012-11-21 12:00:48 +01:00 committed by Alexandre Julliard
parent 6b0f51f9de
commit 720c0c810d
1 changed files with 2 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag)
nsres = nsIDOMNodeList_GetLength(params, &length);
if(NS_FAILED(nsres))
return S_OK;
length = 0;
for(i=0; i < length; i++) {
nsres = nsIDOMNodeList_Item(params, i, &nsnode);
@ -330,6 +330,7 @@ static HRESULT fill_props(nsIDOMHTMLElement *nselem, PropertyBag *prop_bag)
}
}
nsIDOMNodeList_Release(params);
return hres;
}