Core/Misc: Fixed some more issues found by code analysis tools.
This commit is contained in:
1 parent
5b95301de5
commit
24f8b2b994
5 files changed
+14
-30
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user