From e15c52f0a1a320e8513776b0eb195dd78c00a0bd Mon Sep 17 00:00:00 2001 From: Jacek Pazera Date: Sun, 19 Sep 2021 19:40:29 +0200 Subject: [PATCH] [m] FileSearch: JPGetDirectoryList - Added Last.Free (fixed memory leak) --- Base/JPL.FileSearch.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/Base/JPL.FileSearch.pas b/Base/JPL.FileSearch.pas index eea71d8..1a1979b 100644 --- a/Base/JPL.FileSearch.pas +++ b/Base/JPL.FileSearch.pas @@ -456,6 +456,7 @@ procedure JPGetDirectoryList( SubdirsList.Free; TempList.Free; + Last.Free; end; end; {$endregion}