Function DefaultInputDialog creates and free the form without a "try finally" block
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
-
Reporter name: Serge Anvarov
Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
- Reporter name: Serge Anvarov
Description:
If an error occurs during autosizing controls, there will be a memory leak
Steps to reproduce:
var
V: string = '';
begin
DefaultInputDialog('', StringOfChar('1', 10000), False, V);
end;
Additional information:
Patch included
Mantis conversion info:
- Mantis ID: 35451
- Version: 2.1 (SVN)
- Fixed in revision: r61064 (#09945b46)