]> git.sesse.net Git - vlc/blobdiff - src/libvlc-common.c
Check only one time the return value of malloc.
[vlc] / src / libvlc-common.c
index 8466c8f6ee1155b1708c8418dba6cbbc3ee383d2..e667d249ecb4b33c2a175ba762b300185aa36f66 100644 (file)
@@ -75,8 +75,6 @@
 #   include <hal/libhal.h>
 #endif
 
-#include "vlc_os_specific.h"
-
 #include <vlc_playlist.h>
 #include <vlc_interface.h>
 
@@ -1034,7 +1032,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
     vlc_mutex_destroy( &p_libvlc->timer_lock );
 
     if( b_release ) vlc_object_release( p_libvlc );
-    vlc_object_destroy( p_libvlc );
+    vlc_object_release( p_libvlc );
     p_libvlc = NULL;
 
     /* Stop thread system: last one out please shut the door!