[Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

cobines cobines at gmail.com
Mon May 23 22:55:35 CEST 2011


2011/5/23 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Mon, 23 May 2011 22:07:58 +0200
> cobines <cobines at gmail.com> wrote:
>
>> Hello.
>>
>> In TWinControl.Destroy there is code:
>>
>>   while n > 0 do
>>   begin
>>     Control := Controls[n - 1];
>>     Remove(Control);   <--
>>      ...
>>     Control.Parent := nil; <--
>
> That one was not needed any more. I removed it.

OK. Thanks!

--
cobines




More information about the Lazarus mailing list