mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +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 &&
|
if (info &&
|
||||||
string_is_equal(info->info.library_name, core_name))
|
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);
|
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? */
|
/* 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))
|
if ( string_is_equal(core_path, file_path_str(FILE_PATH_DETECT))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user