Commit d32fd684 authored by Thomas Guillem's avatar Thomas Guillem

lib: media_discoverer: release list after stop

since stop() can use the list to send events.
parent 94a21935
......@@ -292,13 +292,13 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis )
services_discovery_removeall,
p_mdis );
libvlc_media_list_release( p_mdis->p_mlist );
if( p_mdis->running )
libvlc_media_discoverer_stop( p_mdis );
vlc_sd_Destroy( p_mdis->p_sd );
libvlc_media_list_release( p_mdis->p_mlist );
/* Free catname_to_submedialist and all the mlist */
char ** all_keys = vlc_dictionary_all_keys( &p_mdis->catname_to_submedialist );
for( i = 0; all_keys[i]; i++ )
......
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