Explorar o código

* fixes issue 40695

marcoonthegit hai 1 ano
pai
achega
2273670aad
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/fcl-stl/src/gdeque.pp

+ 2 - 0
packages/fcl-stl/src/gdeque.pp

@@ -220,6 +220,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]);