Core/Misc: Fixed some more issues found by code analysis tools.

This commit is contained in:
Sebastian Valle
2013-09-03 15:09:37 -05:00
parent 5b95301de5
commit 24f8b2b994
5 changed files with 14 additions and 30 deletions

View File

@@ -34,13 +34,11 @@ bool FileLoader::loadFile(char *filename, bool log)
data_size = mf.getSize();
data = new uint8 [data_size];
if (data)
{
mf.read(data, data_size);
mf.close();
if (prepareLoadedData())
return true;
}
mf.read(data, data_size);
mf.close();
if (prepareLoadedData())
return true;
printf("Error loading %s", filename);
mf.close();
free();