mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- bugfixes on windows platform when some folders and files are missing, do not crash hard.
This commit is contained in:
@@ -63,7 +63,7 @@ void AllocRegistry::dump(const char *path) {
|
||||
fprintf(f, "Total allocations: %d, " MG_SIZE_T_SPECIFIER " bytes\n", allocCount, allocBytes);
|
||||
fprintf(f, "Not monitored allocations: %d, " MG_SIZE_T_SPECIFIER " bytes\n", nonMonitoredCount, nonMonitoredBytes);
|
||||
|
||||
fclose(f);
|
||||
if(f) fclose(f);
|
||||
|
||||
printf("Memory leak dump summary at: %s\n",szBuf2);
|
||||
printf("Total leaks: %d, " MG_SIZE_T_SPECIFIER " bytes\n", leakCount, leakBytes);
|
||||
|
@@ -376,7 +376,7 @@ void Properties::save(const string &path){
|
||||
|
||||
fileStream.close();
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
fclose(fp);
|
||||
if(fp) fclose(fp);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user