Menu

#3 Frm_Editor.pas Memory leak

v1.2
open
nobody
Other (2)
5
2003-09-30
2003-09-30
No

TfrmEditor created but never destroyed 2 TProgram
objects, referenced in datamembers FProgram and
FInsightProgram.

Add the following lines to the destructor of the form and
it will be fixed:

If Assigned(FProgram) then FreeAndNil(FProgram);
If Assigned(FInsightProgram) then FreeAndNil
(FInsightProgram);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.