tests: fix all leaks in surface-test

Fixes all ASan reported leaks.

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

View File

@ -68,4 +68,7 @@ PLUGIN_TEST(surface_transform)
weston_view_update_transform(view);
weston_view_to_global_float(view, 50, 40, &x, &y);
assert(x == 200 && y == 340);
/* Destroys all views too. */
weston_surface_destroy(surface);
}