- bugfixes on windows platform when some folders and files are missing, do not crash hard.

This commit is contained in:
SoftCoder
2013-12-27 23:05:20 -08:00
parent 163a5a173a
commit b6cd751250
6 changed files with 12 additions and 12 deletions

View File

@@ -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);