On Tue, Feb 18, 2003 at 10:41:56PM -0800, Ilya Zakharevich wrote:
> a) HText_RemovePreviousLine() does not return the previous line to the pool;
>    is not this a leak?

"Leonid Pauzner" <[8][EMAIL PROTECTED]> wrote:

  This is a feature.

  Pools only growth. We cannot return memory back to the pool (*).
  Anyway, this function is called when the previous line is nearly
  empty (spaces or control characters only) so the waste of memory
  seems minimal.  There are other functions, insert_blank_in_lines()
  calls comes in mind.

  The pool freed in HText_free(), until then the memory in question is
  allocated but not used. (Who care about a couple of bytes?)

This will not go.  How can one remove the logic of allocation from
pool, replacing it by malloc() etc?  Can you make such an allocation
conditional?

To get better table support, I need to be able to freely
allocate/deallocate lines, including those deep inside the document.

Thanks,
Ilya


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to