26 Jan
2009
26 Jan
'09
11:11 p.m.
On Mon, Jan 26, 2009 at 09:22:03PM +0000, Jeremy Henty wrote:
Valgrind reports that <ol>s leak the labels of their items: each of the first 9 <li>s leaks 3 bytes, then they leak 4 bytes per <li> etc. The leaked memory is created by the line
list_item->initWithText (dStrdup(buf), wordStyle);
Ah right. The strdup() can just be dropped. Allocation and deallocation of text is done in Textblock itself for quite some time now. Please check current tip. Cheers, Johannes