From: Rafaël Carré Date: Sun, 24 Feb 2008 23:25:31 +0000 (+0000) Subject: make incorrect uses of free() and malloc() call abort() on OSX X-Git-Tag: 0.9.0-test0~2540 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3aec1b381569f564766bfb23717c657e0e1967e3;p=vlc make incorrect uses of free() and malloc() call abort() on OSX --- diff --git a/src/vlc.c b/src/vlc.c index 3bd21ddc9b..7016849d09 100644 --- a/src/vlc.c +++ b/src/vlc.c @@ -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" );