Commit 5e3d9616 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

gameux: Fix memory leaks (Valgrind).

parent 7e7519d1
......@@ -264,7 +264,7 @@ static HRESULT GAMEUX_updateStatisticsFile(struct GAMEUX_STATS *stats)
}
if(SUCCEEDED(hr))
hr = IXMLDOMNode_appendChild(categoryNode, statisticsNode, &statisticsNode);
hr = IXMLDOMNode_appendChild(categoryNode, statisticsNode, NULL);
IXMLDOMElement_Release(statisticsElement);
IXMLDOMNode_Release(statisticsNode);
......@@ -578,6 +578,8 @@ static HRESULT GAMEUX_loadStatisticsFromFile(struct GAMEUX_STATS *data)
}
}
IXMLDOMNodeList_Release(categoryChildren);
if(SUCCEEDED(hr))
hr = S_OK;
}
......
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