Page 1 of 1

Memory Leak

Posted: Wed Jan 16, 2008 8:48 am
by svenheuer
Maybe in 6.2 i just found a memory leak in siComp.

Can you check the line 8203 - Lst.CommaText := Value;

The fastMM Memory manager complains about this line. Indeed I see a Lst := TStringList.Create; But no destroy code (on the first look).

Greetings
Sven

Update - i added a lst.free in the following try finally block and the memory manager feels happy. is this ok?

Posted: Wed Jan 16, 2008 10:43 am
by isiticov
Indeed, this is a leak and thank you for reporting this. Your fix is OK.

Posted: Thu Jan 17, 2008 6:21 pm
by DavidD
This is on line 7999 in the 16-Nov-2006 version of siComp.

How often would this be called? It looks, maybe, like only on a Change Language event.

Posted: Fri Jan 18, 2008 5:20 am
by isiticov
In quite rare cases upon language changing when you translate using Extended Translations and include the any multiline (TStrings) property.