[Pixman] [PATCH] Add destructor function to free pixman_implementation_t structs on exit

Emil Velikov emil.l.velikov at gmail.com
Mon Sep 18 12:48:02 UTC 2017


On 18 September 2017 at 11:46, Siarhei Siamashka
<siarhei.siamashka at gmail.com> wrote:
> This fixes a few small memory leaks detected by valgrind. This memory
> was allocated once on pixman library load and never freed (but still
> was reachable). The fix only helps if the compiler has support for
> __attribute__((constructor)) and __attribute__((destructor))
> function attributes.
>
> Reported-by: Emil Velikov <emil.l.velikov at gmail.com>
> Signed-off-by: Siarhei Siamashka <siarhei.siamashka at gmail.com>

Looks and works like a charm. FWIW

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Tested-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the Pixman mailing list