freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] FTC_Manager - crashing on 'FTC_Manager_Done'


From: Richard Barber
Subject: Re: [Devel] FTC_Manager - crashing on 'FTC_Manager_Done'
Date: Tue, 5 Dec 2000 20:49:00 +0000 (GMT)

On Tue, 5 Dec 2000, David Turner wrote:

> Oops, and now I understand why I shouldn't be working on two
> projects at the same time ;-) thanks..

...sorry. I've just picked up one more 'bug' (actually, just a leak) with
the caching code (then I'm finished for the day!).

In FT_Lru_New, if the prealloc option is set on entry then a static array
is allocated with ALLOC_ARRAY( lru->nodes, max_elements, FT_LruNodeRec )

However this array is never FREE'd, just being recycled during the
lifetime of the cache. I've stuck a couple of lines:

  if( lru->nodes )
      FREE( lru->nodes );

In my copy of the FT_Lru_Done function, which seems to do the job. But are
there any circumstances (e.g. when prealloc = 0) where that might cause
nasty problems?

Apart from that, it all seems pretty tight now....

regards,
Richard




reply via email to

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