From 882a65685dbca6878994b42cc02d7fc009aef285 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 21 Dec 2016 01:36:06 +0100 Subject: [PATCH] (menu_cbs_ok.c) Should fix memory leak --- menu/cbs/menu_cbs_ok.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 29367e32e0..4b6af02b32 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -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))