Commit bda8b205 authored by Sébastien Escudier's avatar Sébastien Escudier Committed by Rémi Denis-Courmont

p_vlm destruction fixes

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent dc5389ad
...@@ -173,6 +173,8 @@ void libvlc_release( libvlc_instance_t *p_instance ) ...@@ -173,6 +173,8 @@ void libvlc_release( libvlc_instance_t *p_instance )
{ {
vlc_mutex_destroy( lock ); vlc_mutex_destroy( lock );
vlc_mutex_destroy( &p_instance->event_callback_lock ); vlc_mutex_destroy( &p_instance->event_callback_lock );
if( p_instance->p_vlm )
vlm_Delete( p_instance->p_vlm );
libvlc_InternalCleanup( p_instance->p_libvlc_int ); libvlc_InternalCleanup( p_instance->p_libvlc_int );
libvlc_InternalDestroy( p_instance->p_libvlc_int ); libvlc_InternalDestroy( p_instance->p_libvlc_int );
free( p_instance ); free( p_instance );
......
...@@ -167,6 +167,7 @@ void libvlc_vlm_release( libvlc_instance_t *p_instance, ...@@ -167,6 +167,7 @@ void libvlc_vlm_release( libvlc_instance_t *p_instance,
VLM(p_vlm); VLM(p_vlm);
vlm_Delete( p_vlm ); vlm_Delete( p_vlm );
p_instance->p_vlm = NULL;
} }
void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance, void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment