tests: fix all leaks in surface-test

Fixes all ASan reported leaks.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 3 years ago
parent 4f515a1da7
commit b982676213
  1. 3
      tests/surface-test.c

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

Loading…
Cancel
Save