Ignore:
Timestamp:
Jul 15, 2023, 12:51:15 AM (16 months ago)
Author:
chronos
Message:
  • Modified: Removed U prefix from unit names.
  • Fixed: Memory leaks.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/Machine.pas

    r237 r238  
    1 unit UMachine;
     1unit Machine;
    22
    33interface
    44
    55uses
    6   Classes, SysUtils, UCpu, Syncobjs, UMemory, Generics.Collections, Forms;
     6  Classes, SysUtils, Cpu, Syncobjs, Memory, Generics.Collections, Forms;
    77
    88type
     
    3434    InterruptVector: Integer;
    3535    Form: TFormDevice;
     36    destructor Destroy; override;
    3637    procedure PulseInterrupt;
    3738    procedure OutputHandler(Port, Data: TInteger); virtual;
     
    250251{ TDevice }
    251252
     253destructor TDevice.Destroy;
     254begin
     255  if Assigned(Form) then FreeAndNil(Form);
     256  inherited;
     257end;
     258
    252259procedure TDevice.PulseInterrupt;
    253260begin
     
    497504begin
    498505  PowerOff;
     506  FreeAndNil(Cpu);
     507  FreeAndNil(Memory);
    499508  FreeAndNil(Devices);
    500509  inherited;
Note: See TracChangeset for help on using the changeset viewer.