gameux: Move SysFreeString to success branches (Coverity).
This commit is contained in:
parent
b8ef9b5669
commit
c7355f7921
|
@ -240,10 +240,9 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
|
|||
{
|
||||
TRACE(" storing statistic %d: name: %s\n", j, debugstr_w(V_BSTR(&vValue)));
|
||||
hr = IXMLDOMElement_setAttribute(statisticsElement, bstrName, vValue);
|
||||
SysFreeString(V_BSTR(&vValue));
|
||||
}
|
||||
|
||||
SysFreeString(V_BSTR(&vValue));
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
{
|
||||
V_VT(&vValue) = VT_BSTR;
|
||||
|
@ -256,10 +255,9 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
|
|||
{
|
||||
TRACE(" storing statistic %d: name: %s\n", j, debugstr_w(V_BSTR(&vValue)));
|
||||
hr = IXMLDOMElement_setAttribute(statisticsElement, bstrValue, vValue);
|
||||
SysFreeString(V_BSTR(&vValue));
|
||||
}
|
||||
|
||||
SysFreeString(V_BSTR(&vValue));
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
hr = IXMLDOMNode_appendChild(categoryNode, statisticsNode, &statisticsNode);
|
||||
|
||||
|
|
Loading…
Reference in New Issue