2013.05.21 15:18 "Re: [Tiff] memory management function calls", by Bob Friesenhahn
I am not so sure about the extra "opaque pointer" bit, but having the ability to specify the memory allocation functions to use (as zlib and libpng do) would be useful.
It's not uncommon for applications that implement their own memory management to require a "context" of some kind to be passed to the memory management calls, especially when thread safety is required - hence the "opaque pointer".
Yes, but then standard malloc/realloc/free type functions can not be specified directly. Special wrapper functions would need to be added in order to support passing (and ignoring) the context before calling such functions.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/