Debugging I got to this procedure, on application.inc file:
procedure TApplication.DoBeforeFinalization;
var
i: Integer;
begin
if Self=nil then exit;
for i := ComponentCount - 1 downto 0 do
begin
// DebugLn('TApplication.DoBeforeFinalization ',DbgSName(Components[i]));
if i < ComponentCount then
Components[i].Free;
end;
end;
And its stops on "Components.Free;"
I'm using Lazarus-0.9.31-35602-fpc-2.6.1-20120227-win32
And last lzRichEdit.