mshtml: Fixed ref count leaks.

This commit is contained in:
Jacek Caban 2011-11-03 19:26:07 +01:00 committed by Alexandre Julliard
parent adafcda41c
commit 92d55a84d6
1 changed files with 2 additions and 1 deletions

View File

@ -1038,7 +1038,7 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
nsAString_InitDepend(&html_str, v);
nsres = nsIDOMNSHTMLElement_SetInnerHTML(nselem, &html_str);
nsAString_Finish(&html_str);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_FAILED(nsres)) {
FIXME("SetInnerHtml failed %08x\n", nsres);
return E_FAIL;
@ -1069,6 +1069,7 @@ static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p)
nsAString_Init(&html_str, NULL);
nsres = nsIDOMNSHTMLElement_GetInnerHTML(nselem, &html_str);
nsIDOMNSHTMLElement_Release(nselem);
if(NS_SUCCEEDED(nsres)) {
const PRUnichar *html;