Remove database_playlist_free

This commit is contained in:
twinaphex 2015-05-26 02:08:18 +02:00
parent 6294d7a360
commit 87b501efa7
4 changed files with 3 additions and 11 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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;
}

View File

@ -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;