[waffle] [PATCH 2/3] examples: make use of waffle_teardown
Chad Versace
chad.versace at intel.com
Tue Jan 20 10:30:54 PST 2015
On 01/15/2015 07:21 AM, Emil Velikov wrote:
> Using this we clear the global state thus the user can call waffle_init()
> multiple times, as things won't get clobbered.
> According to gl_basic we cleanup ~20K of leaks (still reachable) and catch
> a bug in the GL/dri2 loader :-)
We catch a bug! Fantastic.
Recently, I've also been digging through the EGL/dri2 loader interfaces.
And there are many leaks in the EGL code :(
>
> Before:
> definitely lost: 63 bytes in 4 blocks
> still reachable: 43,695 bytes in 116 blocks
>
> After:
> definitely lost: 87 bytes in 5 blocks
> still reachable: 23,451 bytes in 55 blocks
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> examples/gl_basic.c | 6 +++++-
> examples/simple-x11-egl.c | 5 +++++
> 2 files changed, 10 insertions(+), 1 deletion(-)
Looks good. Patch 2 is
Reviewed-by: Chad Versace <chad.versace at intel.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/waffle/attachments/20150120/2eb2b7cb/attachment.sig>
More information about the waffle
mailing list