Fix smol memory leak in replay search thread oops

This commit is contained in:
indev authored and Alug committed 2024-08-09 18:51:08 +02:00
1 parent 04c0dad598
commit 15fd488e0d
1 file changed
+1 -1
+1 -1
View File
@@ -6761,7 +6761,6 @@ static SINT8 replayScrollDelay = TICRATE, replayScrollDir = 1;
static void ReplayNamesLoadThread(void* userdata)
{
Lock_search_state();
size_t demolist_all_size = sizedirmenu;
@@ -6789,6 +6788,7 @@ static void ReplayNamesLoadThread(void* userdata)
// Was allocated before thread start, we need to free it
free(replaydirpath);
free(demolist_all_local);
}
static void LoadReplayNames(void)