mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 22:39:11 +02:00
* fix memory leak in TFPPooledConnectionHandler
This commit is contained in:
parent
008214ca15
commit
ef0aea8ca2
@ -250,6 +250,7 @@ Type
|
||||
Procedure CloseSockets; override;
|
||||
procedure CheckRequests; override;
|
||||
Constructor Create(aServer : TFPCustomHttpServer); override;
|
||||
Destructor Destroy; override;
|
||||
Procedure HandleConnection(aConnection : TFPHTTPConnection); override;
|
||||
function CreatePool : TFPCustomSimpleThreadPool;
|
||||
Property Pool : TFPCustomSimpleThreadPool Read FPool;
|
||||
@ -564,6 +565,12 @@ begin
|
||||
FPool:=CreatePool;
|
||||
end;
|
||||
|
||||
destructor TFPPooledConnectionHandler.Destroy;
|
||||
begin
|
||||
FreeAndNil(FPool);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TFPPooledConnectionHandler.ScheduleRequest(aConnection: TFPHTTPConnection);
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user