]> git.sesse.net Git - vlc/commitdiff
make incorrect uses of free() and malloc() call abort() on OSX
authorRafaël Carré <funman@videolan.org>
Sun, 24 Feb 2008 23:25:31 +0000 (23:25 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 24 Feb 2008 23:25:31 +0000 (23:25 +0000)
src/vlc.c

index 3bd21ddc9b509433440e82827b5ba7b588a4db94..7016849d0915ae31601f9a1e05350e210c7a1d8c 100644 (file)
--- 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" );