#1 2014-04-27 17:20:02

kotl
Member
Registered: 2014-04-27
Posts: 1

Small memory leak with LVCL TImage ?

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.

Offline

#2 2014-04-27 19:11:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,371
Website

Re: Small memory leak with LVCL TImage ?

It is fixed now.
See http://synopse.info/fossil/info/af002ccef4

Thanks for the feedback!

Offline

Board footer

Powered by FluxBB