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:
parent
bba09142e8
commit
31924c2efb
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user