mirror of
https://github.com/reactos/wine.git
synced 2024-12-11 21:36:20 +00:00
mshtml: Don't free a string too early.
This commit is contained in:
parent
531a6ceb5d
commit
c4a51b0b0a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user