From ccd3edec2039d7a4d07e991d334fa9c19083b3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Thu, 11 Jun 2015 11:27:10 -0300 Subject: [PATCH] Stop reloading the playlist in action_ok_core_deferred_set() --- menu/cbs/menu_entries_cbs_ok.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/menu/cbs/menu_entries_cbs_ok.c b/menu/cbs/menu_entries_cbs_ok.c index 5925e585b9..acf74b8a31 100644 --- a/menu/cbs/menu_entries_cbs_ok.c +++ b/menu/cbs/menu_entries_cbs_ok.c @@ -856,10 +856,7 @@ static int action_ok_core_deferred_set(const char *path, if (!menu) return -1; - if (menu->playlist) - content_playlist_free(menu->playlist); - - menu->playlist = content_playlist_init(menu->db_playlist_file, 1000); + rarch_assert(menu->playlist != NULL); core_info_get_name(path, core_display_name, sizeof(core_display_name)); @@ -872,8 +869,6 @@ static int action_ok_core_deferred_set(const char *path, menu->playlist->entries[idx].db_name); content_playlist_write_file(menu->playlist); - content_playlist_free(menu->playlist); - menu->playlist = NULL; menu_list_pop_stack(menu->menu_list);