Why it should be freed in described methods if TLMDMemIniFile is created in TLMDIniCtrl component? Lini gets pointer to TLMDIniCtrl.FMemIniFile and it's destroyed in
destructor TLMDIniCtrl.Destroy; begin if Assigned(FMemIniFile) then FreeAndNil(FMemIniFile); inherited; end;
Comments
destructor TLMDIniCtrl.Destroy;
begin
if Assigned(FMemIniFile) then
FreeAndNil(FMemIniFile);
inherited;
end;
LIniCtr := TLMDIniCtrl.Create(nil);
try
LIniCtr.Target := itMemIniFile;
LIni := LIniCtr.MemIniFile;
...
finally
LIniCtr.Free;
end;
So looks like FastMM misoperation here