Commit 7fecb1e1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control: Fix multiple event_manager leaks.

parent 257fdd4a
...@@ -67,6 +67,7 @@ void libvlc_media_library_release( libvlc_media_library_t * p_mlib ) ...@@ -67,6 +67,7 @@ void libvlc_media_library_release( libvlc_media_library_t * p_mlib )
if( p_mlib->i_refcount > 0 ) if( p_mlib->i_refcount > 0 )
return; return;
libvlc_event_manager_release( p_mlib->p_event_manager );
free( p_mlib ); free( p_mlib );
} }
......
...@@ -221,6 +221,7 @@ libvlc_media_list_player_new( libvlc_instance_t * p_instance, ...@@ -221,6 +221,7 @@ libvlc_media_list_player_new( libvlc_instance_t * p_instance,
**************************************************************************/ **************************************************************************/
void libvlc_media_list_player_release( libvlc_media_list_player_t * p_mlp ) void libvlc_media_list_player_release( libvlc_media_list_player_t * p_mlp )
{ {
libvlc_event_manager_release( p_mlib->p_event_manager );
free(p_mlp); free(p_mlp);
} }
......
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