#1 Other components » Small memory leak with LVCL TImage ? » 2014-04-27 17:20:02

kotl
Replies: 1

Hi Arnaud, first thanks for such a great framework.

I'm using the excellent LVCL with the enhanced RTL for Delphi7, there appears to be memory leak with TImage: 29 – 36 bytes: TCanvas x 1.

TImage’s destructor doesn’t inherit from TGraphicControl/TCustomControl to free fCanvas.

{=====================================================================}
destructor TImage.Destroy;
begin
  fPicture.Free;
  inherited;		//  missing from ExtCtrls.pas ?
end;   

As an aside, “... and your .EXE will shrink from 300KB to 30KB”, still can’t get mine below 37k :-)

Thanks again for sharing your code.

Karl.

Board footer

Powered by FluxBB