TIWChartJS memory leak

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWChartJS memory leak

Forum link

 

 

 


 

06-05-2024, 05:11 PM:

 

In the ChartJS demo, I enabled the memory leak report (ReportMemoryLeaksOnShutdown := true) and when closing the application the following memory leak is reported:

 

Code:

 

---------------------------

 

Unexpected Memory Leak

 

---------------------------

 

An unexpected memory leak has occurred. The unexpected small block leaks are:

 

29 - 36 bytes: TIWBorderOptions x 3

 

 

 

EDIT:

 

It looks like in the unit IWCanvas, at line 259 TIWBorderOptions is created and never freed. If I add FBorderOptions.Free; in TIWCustomCanvas.Dispose, the leak disappears.