Changeset 15 for trunk/UCore.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/UCore.pas

    r13 r15  
    5757    procedure AZoomOutExecute(Sender: TObject);
    5858    procedure DataModuleCreate(Sender: TObject);
     59    procedure DataModuleDestroy(Sender: TObject);
    5960  private
    6061    { private declarations }
     
    9495end;
    9596
     97procedure TCore.DataModuleDestroy(Sender: TObject);
     98begin
     99  Project.Free;
     100end;
     101
    96102procedure TCore.Init;
    97103begin
    98104  // Set default
     105  Project.Bitmap.ColorFormat := ColorManager.Formats[0];
    99106  Project.Bitmap.Size := Point(200, 100);
    100107  if ColorManager.FormatCount > 0 then
     
    114121    Project.Bitmap.BackgroundColor.FromTColor(clBlack);
    115122    Project.Bitmap.DPI := FormNew.SpinEditDPI.Value;
    116     AZoomAll.Execute;;
     123    AZoomAll.Execute;
    117124  end;
    118125end;
Note: See TracChangeset for help on using the changeset viewer.