TRegistryIniFile has memory leak
Original Reporter info from Mantis: Atomek61
-
Reporter name: Jan Schirrmacher
Original Reporter info from Mantis: Atomek61
- Reporter name: Jan Schirrmacher
Description:
Heaptrc reports always a leak at the line where TRegistryIniFile is created.
Steps to reproduce:
procedure TForm1.FormCreate(Sender: TObject);
var
Ini :TRegistryIniFile;
begin
Ini := TRegistryIniFile.Create('\Software\Atomek\Test\');
try
Caption := Ini.ReadString('Settings', 'Caption', 'Hello');
finally
Ini.Free;
end;
end;
Mantis conversion info:
- Mantis ID: 35761
- OS: Windows
- OS Build: Windows 10
- Version: 2.0.2
- Fixed in version: 3.3.1
- Fixed in revision: 42282 (#7137289d)
- Target version: 3.2.0