From 54ea691b996f3d8d6d304238a06f65a1083a2294 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 18 Jun 2021 13:01:16 +0300 Subject: [PATCH] tests: fix all leaks in surface-global-test Fix all ASan reported leaks. Signed-off-by: Pekka Paalanen --- tests/surface-global-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/surface-global-test.c b/tests/surface-global-test.c index cd9b7848..a9e4ff9d 100644 --- a/tests/surface-global-test.c +++ b/tests/surface-global-test.c @@ -88,4 +88,7 @@ PLUGIN_TEST(surface_to_from_global) weston_view_from_global(view, 5, 10, &ix, &iy); assert(ix == 0 && iy == 0); + + /* Destroys all views too. */ + weston_surface_destroy(surface); }