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

This commit is contained in:
Sebastian Valle committed 2013-09-03 15:09:37 -05:00
1 parent 5b95301de5
commit 24f8b2b994
5 files changed
+14 -30

No files matched your search

+5 -7
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();