[waffle] [PATCH 3/3] wflinfo: use waffle_teardown

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 15 07:21:59 PST 2015


Drop ~20k and ~10k of still reachable memory "leaks", for the glx and x11_egl
platforms respectively.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/utils/wflinfo.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index 5a9195c..32dad71 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -32,7 +32,7 @@
 ///     2. Create an OpenGL context.
 ///     3. Print information about the context.
 
-#define WAFFLE_API_VERSION 0x0103
+#define WAFFLE_API_VERSION 0x0106
 
 #include <assert.h>
 #include <ctype.h>
@@ -1144,6 +1144,10 @@ main(int argc, char **argv)
     if (!ok)
         error_waffle();
 
+    ok = waffle_teardown();
+    if (!ok)
+        error_waffle();
+
     #ifdef __APPLE__
         cocoa_finish();
     #endif
-- 
2.1.3



More information about the waffle mailing list