[Lazarus] Memory leak in TThread class

Marcos Douglas md at delfire.net
Tue Oct 5 14:44:34 CEST 2010


On Tue, Oct 5, 2010 at 9:40 AM, Luca Olivetti <luca at wetron.es> wrote:
> En/na silvioprog ha escrit:
>>
>> Hi folks,
>>
>> I detected a small leak in the TThread class. I made a simple test and I
>> sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the
>> leak, just open and close the demo.
>
> That's probably because the thread has no chance to run (you create it
> suspended and never resume it).
> If you create it with suspended=false or resume it right after creating it,
> there's no leak.

Even that, I consider this a bug, don't you?

Marcos Douglas




More information about the Lazarus mailing list