[lazarus] Owner and parent must be equal?
nc-gaertnma at netcologne.de
Mon Aug 11 15:38:54 EDT 2003
On Mon, 11 Aug 2003 20:42:05 +0200
Vincent Snijders <vslist at zonnet.nl> wrote:
> Lazarus has a small memory leak in the compiler options form.
> I changed line 4388 in CompilerOptions.pp to:
> edtUnitOutputDir := TEdit.Create(grpUnitOutputDir);
> i.e. making the owner equal to the parent groupbox.
> Since it was solved then, I didn't research further, why the owner and
> the parent of a control in a GroupBox need to be the same.
It does not.
> grpCompiler is destroyed (almost) at the same time, so why doesn't it
> the edtUnitOutputDir?
When edtUnitOutputDir was created, the old "owner" grpCompiler was not yet
created (i.e. nil).
More information about the Lazarus