* destroy FList in the destructor of TFPHTTPServerConnectionListHandler

This commit is contained in:
Ondrej Pokorny 2021-08-29 12:50:41 +02:00
parent 9b8a6438c7
commit bfa0c60e77

View File

@ -187,6 +187,7 @@ Type
Procedure RemoveConnection(aConnection :TFPHTTPConnection); override;
Public
Constructor Create(aServer : TFPCustomHTTPServer); override;
Destructor Destroy; override;
Procedure HandleConnection(aConnection : TFPHTTPConnection); override;
Procedure CloseSockets; override;
Function GetActiveConnectionCount : Integer; override;
@ -536,6 +537,13 @@ begin
Result:=TConnectionList.Create;
end;
destructor TFPHTTPServerConnectionListHandler.Destroy;
begin
FList.Free;
inherited Destroy;
end;
procedure TFPHTTPServerConnectionListHandler.CloseConnectionSocket(aConnection: TFPHTTPConnection; var aContinue: boolean);
begin
sockets.CloseSocket(aConnection.Socket.Handle);