mshtml: Don't free a string too early.

This commit is contained in:
Zhenbo Li 2014-04-06 22:44:39 +08:00 committed by Alexandre Julliard
parent 531a6ceb5d
commit c4a51b0b0a

View File

@ -200,7 +200,6 @@ static HRESULT WINAPI HTMLTableRow_get_bgColor(IHTMLTableRow *iface, VARIANT *p)
nsAString_Init(&strColor, NULL);
nsres = nsIDOMHTMLTableRowElement_GetBgColor(This->nsrow, &strColor);
nsAString_Finish(&strColor);
if(NS_SUCCEEDED(nsres)) {
nsAString_GetData(&strColor, &color);
@ -211,6 +210,7 @@ static HRESULT WINAPI HTMLTableRow_get_bgColor(IHTMLTableRow *iface, VARIANT *p)
hres = E_FAIL;
}
nsAString_Finish(&strColor);
return hres;
}