[INTERPRETER]
* NEW: Temporarily disable memory leak warning message. git-svn-id: svn://localhost/gambas/trunk@1861 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
1fa019cd45
commit
d6b1f777da
1 changed files with 10 additions and 2 deletions
|
@ -59,6 +59,7 @@
|
|||
#include "gbx_c_application.h"
|
||||
|
||||
extern void _exit(int) NORETURN;
|
||||
FILE *log_file;
|
||||
|
||||
static bool _welcome = FALSE;
|
||||
|
||||
|
@ -95,6 +96,7 @@ static void my_exit(int ret)
|
|||
LOCAL_exit();
|
||||
COMPONENT_exit();
|
||||
EXTERN_exit();
|
||||
fclose(log_file);
|
||||
exit(ret);
|
||||
}
|
||||
|
||||
|
@ -118,6 +120,7 @@ static void main_exit(bool silent)
|
|||
STRING_exit();
|
||||
STACK_exit();
|
||||
ERROR_exit();
|
||||
fclose(log_file);
|
||||
}
|
||||
|
||||
|
||||
|
@ -130,6 +133,11 @@ int main(int argc, char **argv)
|
|||
char *file = ".";
|
||||
bool nopreload = FALSE;
|
||||
|
||||
//char log_path[256];
|
||||
//sprintf(log_path, "/tmp/gambas-%d.log", getuid());
|
||||
//log_file = freopen(log_path, "w+", stderr);
|
||||
//fprintf(stderr, "Fichier log Gambas\n");
|
||||
|
||||
MEMORY_init();
|
||||
COMMON_init();
|
||||
//STRING_init();
|
||||
|
@ -386,8 +394,8 @@ int main(int argc, char **argv)
|
|||
|
||||
main_exit(FALSE);
|
||||
|
||||
if (MEMORY_count)
|
||||
fprintf(stderr, "WARNING: %d allocation(s) non freed.\n", MEMORY_count);
|
||||
//if (MEMORY_count)
|
||||
// fprintf(stderr, "WARNING: %d allocation(s) non freed.\n", MEMORY_count);
|
||||
|
||||
MEMORY_exit();
|
||||
|
||||
|
|
Loading…
Reference in a new issue