Commit 3aec1b38 authored by Rafaël Carré's avatar Rafaël Carré

make incorrect uses of free() and malloc() call abort() on OSX

parent 68cfd74e
......@@ -95,6 +95,9 @@ int main( int i_argc, const char *ppsz_argv[] )
# ifdef DEBUG
/* Activate malloc checking routines to detect heap corruptions. */
putenv( (char*)"MALLOC_CHECK_=2" );
# ifdef __APPLE
putenv( (char*)"MallocErrorAbort=crash_my_baby_crash" );
# endif
/* Disable the ugly Gnome crash dialog so that we properly segfault */
putenv( (char *)"GNOME_DISABLE_CRASH_DIALOG=1" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment