Changeset 15 for trunk/LibrePaint.lpr


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/LibrePaint.lpr

    r13 r15  
    88  {$ENDIF}{$ENDIF}
    99  Interfaces, // this includes the LCL widgetset
    10   Forms, UCore, UGraphic, UProject, UMemory, UFormNew, UFormMain,
     10  SysUtils, Forms, UCore, UGraphic, UProject, UMemory, UFormNew, UFormMain,
    1111  UColorRGBA8, UColorGray8, UColorGray1, UColorGray4, UColorRGB565
    1212  { you can add units after this };
     
    1414{$R *.res}
    1515
     16{$IFDEF DEBUG}
     17const
     18  HeapTraceLog = 'heaptrclog.trc';
     19{$ENDIF}
     20
    1621begin
     22  {$IFDEF DEBUG}
     23  // Heap trace
     24  DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     25  SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     26  {$ENDIF}
     27
    1728  RequireDerivedFormResource := True;
    1829  Application.Initialize;
Note: See TracChangeset for help on using the changeset viewer.