fix(color): File handle leak in theme manager (#2911)
This commit is contained in:
@@ -345,6 +345,7 @@ void ThemePersistance::scanThemeFolder(char *fullPath)
|
|||||||
FRESULT result = f_open(&file, fullPath, FA_OPEN_EXISTING | FA_READ);
|
FRESULT result = f_open(&file, fullPath, FA_OPEN_EXISTING | FA_READ);
|
||||||
if (result != FR_OK) return;
|
if (result != FR_OK) return;
|
||||||
|
|
||||||
|
f_close(&file);
|
||||||
TRACE("scanForThemes: found file %s", fullPath);
|
TRACE("scanForThemes: found file %s", fullPath);
|
||||||
themes.emplace_back(new ThemeFile(fullPath));
|
themes.emplace_back(new ThemeFile(fullPath));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user