Commit 25fd4bfd authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

media_instance.c: Don't forget mutex destruction.

parent 5d963f01
...@@ -263,6 +263,7 @@ void libvlc_media_instance_destroy( libvlc_media_instance_t *p_mi ) ...@@ -263,6 +263,7 @@ void libvlc_media_instance_destroy( libvlc_media_instance_t *p_mi )
free( p_mi ); free( p_mi );
return; /* no need to worry about no input thread */ return; /* no need to worry about no input thread */
} }
vlc_mutex_destroy( &p_mi->object_lock );
input_DestroyThread( p_input_thread ); input_DestroyThread( p_input_thread );
...@@ -289,6 +290,7 @@ void libvlc_media_instance_release( libvlc_media_instance_t *p_mi ) ...@@ -289,6 +290,7 @@ void libvlc_media_instance_release( libvlc_media_instance_t *p_mi )
return; return;
} }
vlc_mutex_unlock( &p_mi->object_lock ); vlc_mutex_unlock( &p_mi->object_lock );
vlc_mutex_destroy( &p_mi->object_lock );
libvlc_event_manager_release( p_mi->p_event_manager ); libvlc_event_manager_release( p_mi->p_event_manager );
......
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