* fixes issue 40695

(cherry picked from commit 2273670aad)
This commit is contained in:
marcoonthegit 2024-03-14 09:28:30 +01:00
parent 0d5000d329
commit a8c6095677

View File

@ -218,6 +218,8 @@ procedure TDeque.ClearData;
var
i: SizeInt;
begin
if Length(FData)=0 then
exit;
if IsManagedType(T) then
for i := Low(FData) to High(FData) do
Finalize(FData[i]);