X-Git-Url: https://code.delx.au/refind/blobdiff_plain/41a682188697edfe57a5cda884f698687bdcce3a..315c06865c0b4e3dfceec2107e6e12713813ea8a:/refind/config.c diff --git a/refind/config.c b/refind/config.c index 2f314e8..3831e4c 100644 --- a/refind/config.c +++ b/refind/config.c @@ -345,6 +345,8 @@ VOID ReadConfig(CHAR16 *FileName) // Set a few defaults only if we're loading the default file. if (StriCmp(FileName, CONFIG_FILE_NAME) == 0) { + MyFreePool(GlobalConfig.AlsoScan); + GlobalConfig.AlsoScan = StrDuplicate(ALSO_SCAN_DIRS); MyFreePool(GlobalConfig.DontScanDirs); GlobalConfig.DontScanDirs = StrDuplicate(SelfDirPath); MyFreePool(GlobalConfig.DontScanFiles);