gameux: Fix memory leaks (Valgrind).

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2015-11-11 14:44:03 +11:00 committed by Alexandre Julliard
parent 7e7519d1f5
commit 5e3d9616e4
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}