Changeset 15 for trunk/UMemory.pas


Ignore:
Timestamp:
Sep 22, 2014, 11:06:27 PM (10 years ago)
Author:
chronos
Message:
  • Added: Memory leaks reporting in debug mode.
  • Fixed: Various memory leaks in bitmap, color and colorformat classes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMemory.pas

    r13 r15  
    8989    procedure SetItem(Index: Integer; AValue: Byte); override;
    9090  public
     91    constructor Create;
     92    destructor Destroy; override;
    9193    function GetInteger: Integer; override;
    9294    procedure SetInteger(Value: Integer); override;
     
    203205end;
    204206
     207constructor TBitMemory.Create;
     208begin
     209  FData := nil;
     210end;
     211
     212destructor TBitMemory.Destroy;
     213begin
     214  FreeMem(FData);
     215  inherited Destroy;
     216end;
     217
    205218{ TBitBlock }
    206219
Note: See TracChangeset for help on using the changeset viewer.