X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvlc.c;h=55fed1d3c6d991a7c4c9879e066ccdeb8d180480;hb=49347bf49baf8d5a325e1589f442199a3b11cc80;hp=3bd21ddc9b509433440e82827b5ba7b588a4db94;hpb=711481177da708b723664b1e4dafaad8307f49d6;p=vlc diff --git a/src/vlc.c b/src/vlc.c index 3bd21ddc9b..55fed1d3c6 100644 --- a/src/vlc.c +++ b/src/vlc.c @@ -92,9 +92,12 @@ int main( int i_argc, const char *ppsz_argv[] ) #endif #ifdef HAVE_PUTENV -# ifdef DEBUG +# ifndef NDEBUG /* 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" );