Corrected two missuse of #ifdef CAUDIO_USE_MMGR
This commit is contained in:
parent
fe2d4c9e8b
commit
73db60b26e
|
@ -258,7 +258,6 @@ static void doCleanupLogOnFirstRun();
|
|||
|
||||
static void log(const char *format, ...)
|
||||
{
|
||||
#ifdef CAUDIO_USE_MMGR
|
||||
// Cleanup the log?
|
||||
|
||||
if (cleanupLogOnFirstRun) doCleanupLogOnFirstRun();
|
||||
|
@ -285,7 +284,6 @@ static void log(const char *format, ...)
|
|||
|
||||
fprintf(fp, "%s\r\n", buffer);
|
||||
fclose(fp);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -536,7 +534,6 @@ static void dumpAllocations(FILE *fp)
|
|||
|
||||
static void dumpLeakReport()
|
||||
{
|
||||
#ifdef CAUDIO_USE_MMGR
|
||||
// Open the report file
|
||||
|
||||
FILE *fp = fopen(memoryLeakLogFile, "w+b");
|
||||
|
@ -589,7 +586,6 @@ static void dumpLeakReport()
|
|||
}
|
||||
|
||||
fclose(fp);
|
||||
#endif
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue