X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc-common.c;h=020b1bd37caea0344aa6dc95437e47952cb2e10a;hb=2f095050c21a3ade7573c02afcce92b8fe81d559;hp=510f8ca79afabc630d98f82fb79b3321594afc64;hpb=bb5f959c144718691b258b1e4150edcc03758456;p=vlc diff --git a/src/libvlc-common.c b/src/libvlc-common.c index 510f8ca79a..020b1bd37c 100644 --- a/src/libvlc-common.c +++ b/src/libvlc-common.c @@ -208,9 +208,6 @@ libvlc_int_t * libvlc_InternalCreate( void ) vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW ); #endif - /* Store our newly allocated structure in the global list */ - vlc_object_attach( p_libvlc, p_libvlc_global ); - /* Store data for the non-reentrant API */ p_static_vlc = p_libvlc; @@ -907,7 +904,6 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release ) /* Destroy mutexes */ vlc_mutex_destroy( &p_libvlc->config_lock ); - vlc_object_detach( p_libvlc ); if( b_release ) vlc_object_release( p_libvlc ); vlc_object_destroy( p_libvlc );