A bug with TRONamedPipeChannel

uRONamedPipeChannel, Line 152 has a BUG, causing NamedPipeChannel’s owner to be nil !!! This would cause memory leak. @EvgenyK @mh

constructor TRONamedPipeChannel.Create(aOwner: TComponent);
  inherited Create(Owner); // <------ This line, should be inherited Create(aOwner)
  fActivateOnDemand := True;
  fActive := False;
  fServerID := 'RONamedPipeServer';
  fServerName := '.'; // localhost
  fNetworkByteOrder := False;
  fBufferSize := BUFFER_SIZE;

Logged as bugs://D19462.

bugs://D19462 was closed as fixed.

1 Like