[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Re: Lynx problems

From: Ilya Zakharevich
Subject: lynx-dev Re: Lynx problems
Date: Wed, 19 Feb 2003 12:43:08 -0800
User-agent: Mutt/1.4i

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" <address@hidden> 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

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


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]