[Piglit] [PATCH 7/9] egl_mesa_platform_surfaceless: plug some memory leaks
Emil Velikov
emil.l.velikov at gmail.com
Fri Aug 3 12:46:35 UTC 2018
From: Emil Velikov <emil.velikov at 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.velikov at 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
More information about the Piglit
mailing list