tests: fix all leaks in surface-global-test

Fix all ASan reported leaks.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2021-06-18 13:01:16 +03:00
parent b982676213
commit 54ea691b99

View File

@ -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);
}