Atozed Forums
TIWChartJS memory leak - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWChartJS memory leak (/thread-4210.html)



TIWChartJS memory leak - ioan - 06-05-2024

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.