From 45d4a8865c8911b9efa297f8a90752ce34d20949 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sun, 22 Jan 2017 11:33:20 -0500 Subject: [PATCH] free task state when finished --- tasks/task_netplay_crc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/task_netplay_crc.c b/tasks/task_netplay_crc.c index 6234f3e17a..22ae3484b6 100644 --- a/tasks/task_netplay_crc.c +++ b/tasks/task_netplay_crc.c @@ -58,6 +58,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task) task_set_progress(task, 100); task_set_title(task, strdup("Playlist directory not found.")); task_set_finished(task, true); + free(state); return; } @@ -84,6 +85,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task) task_set_title(task, strdup("Game found.")); task_set_finished(task, true); string_list_free(state->lpl_list); + free(state); return; } @@ -96,6 +98,7 @@ no_playlists: task_set_progress(task, 100); task_set_title(task, strdup("No game found.")); task_set_finished(task, true); + free(state); return; }