freetype-devel
[Top][All Lists]
Advanced

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

[Devel] FT_New_Memory()


From: Ken Hancock
Subject: [Devel] FT_New_Memory()
Date: Thu, 23 Sep 2004 15:21:17 -0400

The documentation for freetype2 custom memory allocators reads:

Even with a default build, client applications are still able to provide
their own memory manager by not calling FT_Init_FreeType() but follow these
simple steps:

   1. Create a new FT_Memory object by hand. The definition of FT_MemoryRec
is located in the public file <freetype/ftsystem.h>.

(1) seems to be in error since FT_Done_FreeType() calls FT_Done_Memory()
which calls free() on the FT_Memory structure. It would appear that
FT_New_Memory() needs to be propagated up from intertal/ftobj.h to an
external interface.

Am I missing something obvious?

Thanks in advance,

Ken

 





reply via email to

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