From e297da1b719cdae1db0bf6beab8372a066fcdefc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 26 May 2016 17:34:44 +0200 Subject: [PATCH] Take out this call to prevent another memory leak --- tasks/task_database_cue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/task_database_cue.c b/tasks/task_database_cue.c index 30ad36e951..4bc0749a1a 100644 --- a/tasks/task_database_cue.c +++ b/tasks/task_database_cue.c @@ -183,13 +183,11 @@ static int detect_ps1_game_sub(const char *track_path, return 0; if (!strncasecmp((const char*)(tmp + 33), "SYSTEM.CNF;1", 12)) - { - filestream_close(fp); break; - } tmp += *tmp; } + if(tmp >= (buffer + 2048 * 2)) { filestream_close(fp);