From 4ac9e03116045cb5db2bcfc3d93b975817c1d84e Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 18 Dec 2021 23:56:07 +0300 Subject: [PATCH] sfs: fix collector (again?) --- src/sfs/sfs.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sfs/sfs.pas b/src/sfs/sfs.pas index 5e5c0d2..11e1045 100644 --- a/src/sfs/sfs.pas +++ b/src/sfs/sfs.pas @@ -455,8 +455,7 @@ begin while f < volumes.Count do begin vi := TVolumeInfo(volumes[f]); - if vi = nil then continue; - if (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then + if (vi <> nil) and (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then begin // this volume probably can be removed used := false; -- 2.29.2