#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" );
return i_ret == VLC_EEXITSUCCESS ? 0 : -i_ret;
}
- i_ret = VLC_AddIntf( 0, NULL, VLC_TRUE, VLC_TRUE );
+ i_ret = VLC_AddIntf( 0, NULL, true, true );
/* Finish the threads */
VLC_CleanUp( 0 );