▲ 5 r/delphi
A story of how I hunted memory leaks in HeidiSQL
TL;DR: opening one database and clicking one table leaks 1153 objects, ~190 KB. Nothing shows in Task Manager, nothing in the source looks wrong. RestoreListSetup creates five TStringList and frees one. The table editor's constructor builds six owning containers and the unit has no destructor.
Also: how to build HeidiSQL so a profiler can actually resolve Delphi objects, which the stock command line does not.
u/ArtemRazin — 8 days ago