From: Emil Velikov <emil.veli...@collabora.com>

Plug the memory leaks in the PASS case. It might be worth doing the same
throughout, although that is too invasive for what I have time for.

Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
---
 .../egl_mesa_platform_surfaceless.c                          | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c 
b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
index b6f239a2f..821a66222 100644
--- 
a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
+++ 
b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
@@ -68,6 +68,7 @@ test_initialize_display(void *test_data)
 
        test_setup(&dpy);
 
+       eglTerminate(dpy);
        return PIGLIT_PASS;
 }
 
@@ -101,6 +102,7 @@ test_create_window(void *test_data)
        if (!piglit_check_egl_error(EGL_BAD_NATIVE_WINDOW))
                return PIGLIT_FAIL;
 
+       eglTerminate(dpy);
        return PIGLIT_PASS;
 }
 
@@ -132,6 +134,7 @@ test_create_pixmap(void *test_data)
        if (!piglit_check_egl_error(EGL_BAD_NATIVE_PIXMAP))
                return PIGLIT_FAIL;
 
+       eglTerminate(dpy);
        return PIGLIT_PASS;
 }
 
@@ -192,7 +195,7 @@ test_create_pbuffer(void *test_data)
        }
 
        eglDestroySurface(dpy, surf);
-
+       eglTerminate(dpy);
        return PIGLIT_PASS;
 }
 
-- 
2.18.0

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to