mirror of
https://github.com/glest/glest-source.git
synced 2025-02-23 11:15:02 +01:00
Merge pull request #130 from bryongloden/patch-1
close opened file descriptors properly
This commit is contained in:
commit
c33310d37b
@ -827,6 +827,7 @@ void MapPreview::loadFromFile(const string &path) {
|
||||
if(bytes != 1) {
|
||||
char szBuf[8096]="";
|
||||
snprintf(szBuf,8096,"fread returned wrong size = " MG_SIZE_T_SPECIFIER " on line: %d.",bytes,__LINE__);
|
||||
fclose(f1);
|
||||
throw megaglest_runtime_error(szBuf);
|
||||
}
|
||||
fromEndianMapFileHeader(header);
|
||||
|
Loading…
x
Reference in New Issue
Block a user