fix(color): File handle leak in theme manager (#2911)

This commit is contained in:
philmoz
2022-12-20 21:52:16 +10:00
committed by GitHub
parent af040c9e2e
commit 866716b708
+1
View File
@@ -345,6 +345,7 @@ void ThemePersistance::scanThemeFolder(char *fullPath)
FRESULT result = f_open(&file, fullPath, FA_OPEN_EXISTING | FA_READ);
if (result != FR_OK) return;
f_close(&file);
TRACE("scanForThemes: found file %s", fullPath);
themes.emplace_back(new ThemeFile(fullPath));
}