Platform: fix a memory leak (#782)

This commit is contained in:
apocelipes
2024-04-08 09:10:03 +08:00
committed by GitHub
parent e16f8ef349
commit 67564dfa2c
+1
View File
@@ -52,6 +52,7 @@ void ffPlatformDestroy(FFPlatform* platform)
FF_LIST_FOR_EACH(FFstrbuf, dir, platform->dataDirs)
ffStrbufDestroy(dir);
ffListDestroy(&platform->dataDirs);
ffStrbufDestroy(&platform->exePath);
ffStrbufDestroy(&platform->userName);
ffStrbufDestroy(&platform->hostName);