Explorar el Código

* fixes issue 40695

marcoonthegit hace 1 año
padre
commit
2273670aad
Se han modificado 1 ficheros con 2 adiciones y 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]);