Changeset 575 for PinConnection/CommDelay.pas
- Timestamp:
- Jun 25, 2024, 11:56:51 AM (4 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/CommDelay.pas
r574 r575 1 unit UCommDelay; 2 3 {$mode Delphi}{$H+} 1 unit CommDelay; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UCommPin, UThreading, SyncObjs, SpecializedList;6 Classes, SysUtils, CommPin, Threading, SyncObjs, SpecializedList; 9 7 10 8 type … … 52 50 property Delay: TDateTime read FDelay write FDelay; 53 51 end; 52 54 53 55 54 implementation … … 103 102 destructor TDelayedPacket.Destroy; 104 103 begin 105 Data.Free;106 inherited Destroy;104 FreeAndNil(Data); 105 inherited; 107 106 end; 108 107 … … 186 185 begin 187 186 Active := False; 188 Pin2.Free;189 Pin1.Free;190 PacketQueue1.Free;191 PacketQueue2.Free;192 Lock1.Free;193 Lock2.Free;194 inherited Destroy;187 FreeAndNil(Pin2); 188 FreeAndNil(Pin1); 189 FreeAndNil(PacketQueue1); 190 FreeAndNil(PacketQueue2); 191 FreeAndNil(Lock1); 192 FreeAndNil(Lock2); 193 inherited; 195 194 end; 196 195
Note:
See TracChangeset
for help on using the changeset viewer.