Commit c4a51b0b authored by Zhenbo Li's avatar Zhenbo Li Committed by Alexandre Julliard

mshtml: Don't free a string too early.

parent 531a6ceb
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment