]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
Fixed major crash on Snow Leopard pointed by Pierre
[vlc] / bin / vlc.c
index 610da477eb0116b80eb4257e6bc82cd67ecd27db..b175439ef8344133170bbee6a054f246c1fe4f57 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -79,9 +79,6 @@ int main( int i_argc, const char *ppsz_argv[] )
 #   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" );
@@ -166,7 +163,7 @@ int main( int i_argc, const char *ppsz_argv[] )
     }
     i_ret = libvlc_exception_raised (&ex);
     if( i_ret )
-        fprintf( stderr, "%s\n", libvlc_exception_get_message( &ex));
+        fprintf( stderr, "%s\n", libvlc_errmsg() );
 
     libvlc_exception_clear (&ex);
     libvlc_exception_clear (&dummy);