Have been doing work looking for memory leaks on my application. One bug report has been submitted by WP responding to my post on memory leak using Chart. Seems to actually be a problem with canvas painting.
This one is similar, I think. Create a new project, place a panel on the form, select a font for its caption. On program close 2 unfreed blocks. The hepatrc output is not helpful
Heap dump by heaptrc unit of /Volumes/MacHD-SSD-Data/LocBucket/FpLazStuff/BBB//project1
756 memory blocks allocated : 1109692/1110392
754 memory blocks freed : 1109613/1110312
2 unfreed memory blocks : 79
True heap size : 1736704 (96 used in System startup)
True free heap : 1736096
Should be : 1736144
Call trace for block $00000001E476FD00 size 48
$000000010A4FFE41
$000000010A38C2F6
$000000010A37B96A
$000000010A37BFAA
$000000010A4A3AF7
$000000010A3FC8A5
$000000010A208A59
$000000010A3FC4DF
$000000010A203700
$000000010A20DB2C
$000000010A20F279
$000000010A3FBB07
$000000010A3FD231
Call trace for block $00000001E4770000 size 31
$000000010A257D83
$000000010A25729F
$000000010A2569F6
$000000010A255CD9
$000000010A2579DA
$000000010A3A6D04
$000000010A39E610
$000000010A20BB2B
$000000010A20B9B8
$000000010A20F353
I have tried multiple fonts, Tahoma, Comic Sans, Times New Roman all seem to create the memory leak. Selecting a font for the form itself does not seem to give a memory leak so perhaps it's not the font but the way it is painted on the panel?
I don't know how to debug this further.