[Pixman] [BUG REPORT] pixman_glyph_cache_create leaks memory that it allocates

Yuri yuri at rawbw.com
Sun Sep 17 20:17:13 UTC 2017

On 09/17/17 13:07, Emil Velikov wrote:
> Having the opposite - a destructor [1] should provide symmetry and consistency.
> Furthermore using atexit is not as portable/reliable as one would think.

It should be the destructor that handles this. Either the user clears 
it, or destructor clears it.

> All this is obviously orthogonal to the original issue reported;-)

I don't see how it is orthogonal.

There is actually |__attribute__((destructor)) 
It works with gcc and clang, and probably with most or all other compilers.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pixman/attachments/20170917/e3d58263/attachment-0001.html>

More information about the Pixman mailing list