diff --git a/database_info.c b/database_info.c index e8c21286db..4a316081d0 100644 --- a/database_info.c +++ b/database_info.c @@ -380,9 +380,3 @@ void database_info_list_free(database_info_list_t *database_info_list) free(database_info_list->list); free(database_info_list); } - -void database_playlist_free(content_playlist_t *db_playlist) -{ - if (db_playlist) - content_playlist_free(db_playlist); -} diff --git a/database_info.h b/database_info.h index caa504cced..900ff5ca5c 100644 --- a/database_info.h +++ b/database_info.h @@ -101,8 +101,6 @@ void database_info_free(database_info_handle_t *dbl); int database_info_build_query( char *query, size_t len, const char *label, const char *path); -void database_playlist_free(content_playlist_t *db_playlist); - #ifdef __cplusplus } #endif diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 45e87109e9..070b4f37a0 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -1153,12 +1153,12 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info) 0, 0); #endif - database_playlist_free(playlist); + content_playlist_free(playlist); return 0; error: - database_playlist_free(playlist); + content_playlist_free(playlist); return -1; } diff --git a/menu/menu_entries_cbs_ok.c b/menu/menu_entries_cbs_ok.c index 7684f86fca..f5ea17fb90 100644 --- a/menu/menu_entries_cbs_ok.c +++ b/menu/menu_entries_cbs_ok.c @@ -69,7 +69,7 @@ static int action_ok_playlist_entry(const char *path, rarch_playlist_load_content(playlist, selection_ptr); if (free_list) - database_playlist_free(playlist); + content_playlist_free(playlist); menu_list_flush_stack(menu->menu_list, NULL, MENU_SETTINGS); return -1;