[waffle] [PATCH 2/3] wflinfo: don't leak the current context

Emil Velikov emil.l.velikov at gmail.com
Sun Jun 1 07:12:01 PDT 2014


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

diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index eba4e8f..9486361 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -1062,6 +1062,10 @@ main(int argc, char **argv)
     if (!ok)
         error_waffle();
 
+    ok = waffle_make_current(dpy, NULL, NULL);
+    if (!ok)
+        error_waffle();
+
     ok = waffle_window_destroy(window);
     if (!ok)
         error_waffle();
-- 
1.9.3



More information about the waffle mailing list