Fix smol memory leak in replay search thread oops
This commit is contained in:
1 parent
c2cfc96d87
commit
b4612d6bd4
1 file changed
+1
-1
+1
-1
@@ -6758,7 +6758,6 @@ static SINT8 replayScrollDelay = TICRATE, replayScrollDir = 1;
|
||||
|
||||
static void ReplayNamesLoadThread(void* userdata)
|
||||
{
|
||||
|
||||
Lock_search_state();
|
||||
|
||||
size_t demolist_all_size = sizedirmenu;
|
||||
@@ -6786,6 +6785,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)
|
||||
|
||||
Reference in new issue
Block a user