Re: [waffle] [PATCH 2/3] examples: make use of waffle_teardown

2015-01-20 Thread Chad Versace
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!

[waffle] [PATCH 2/3] examples: make use of waffle_teardown

2015-01-15 Thread Emil Velikov
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 :-) Before: definitely lost: 63 bytes in 4 blocks still