Fixed minor memory leak, and added some missing exit statements.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-10-10 04:23:14 +00:00
parent 0fa8d27eff
commit 9d26f87217

View File

@ -60,6 +60,7 @@ void Referee::init()
{
printf("The file referee.xml does not contain a referee"
"node, aborting.\n");
exit(-1);
}
std::string model_filename;
node->get("model", &model_filename);
@ -70,6 +71,7 @@ void Referee::init()
{
printf("Can't find referee model '%s', aborting.\n",
model_filename.c_str());
exit(-1);
}
// Translate the mesh so that the x/z middle point
@ -141,6 +143,7 @@ void Referee::init()
}
delete node;
} // init
// ----------------------------------------------------------------------------