DBus control module: destroy events at exit

This commit is contained in:
Jorge Bellon-Castro 2023-01-29 15:19:37 +01:00 committed by Steve Lhomme
parent dfde8b0e09
commit 1832179c7b
1 changed files with 8 additions and 0 deletions

View File

@ -404,6 +404,14 @@ static void Close ( vlc_object_t *p_this )
for( size_t i = 0; i < vlc_array_count( &p_sys->events ); i++ )
{
callback_info_t* info = vlc_array_item_at_index( &p_sys->events, i );
switch( info->signal ) {
case SIGNAL_PLAYLIST_ITEM_APPEND:
tracklist_append_event_destroy( info->items_appended );
break;
case SIGNAL_PLAYLIST_ITEM_DELETED:
tracklist_remove_event_destroy( info->items_removed );
break;
}
free( info );
}
vlc_array_clear( &p_sys->events );