Fixed memory leak.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-10-06 22:25:21 +00:00
parent bba09142e8
commit 31924c2efb

View File

@ -318,9 +318,13 @@ CURLcode NetworkHttp::init()
news_manager->init();
status = loadAddonsList(xml, xml_file);
if(status==CURLE_OK)
{
delete xml;
return status;
}
else
{
delete xml;
// This message must be translated dynamically in the main menu.
// If it would be translated here, it wouldn't be translated
// if the language is changed in the menu!