mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
(menu_cbs_ok.c) Should fix memory leak
This commit is contained in:
parent
58716e5f3c
commit
882a65685d
@ -1274,7 +1274,11 @@ static int action_ok_playlist_entry_collection(const char *path,
|
||||
*/
|
||||
if (info &&
|
||||
string_is_equal(info->info.library_name, core_name))
|
||||
{
|
||||
if (playlist_initialized)
|
||||
playlist_free(tmp_playlist);
|
||||
return action_ok_file_load(menu->deferred_path, label, type, idx, entry_idx);
|
||||
}
|
||||
|
||||
/* Is the core path / name of the playlist entry not yet filled in? */
|
||||
if ( string_is_equal(core_path, file_path_str(FILE_PATH_DETECT))
|
||||
|
Loading…
Reference in New Issue
Block a user