landrix / The-Drag-and-Drop-Component-Suite-for-Delphi

MIT License
161 stars 57 forks source link

Two annoying memory leaks reported #62

Closed GabrielOnDelphi closed 1 year ago

GabrielOnDelphi commented 1 year ago

Two memory leaks documented. But they are annoying because everytime you shoutdown, FastMM will report a leak. To fix them add these two lines:

constructor TDataFormatClasses.Create; begin ASSERT(FDataFormatClasses = nil); inherited Create; FList := TList.Create;

RegisterExpectedMemoryLeak(FDataFormatClasses); <------- RegisterExpectedMemoryLeak(FList); <------- end;