mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-01 17:40:17 +01:00
tests: clean up in roles-test
This fixes all ASan reported leaks in this test. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
35cae567d6
commit
fc26bdb2fb
1 changed files with 14 additions and 0 deletions
|
|
@ -124,6 +124,13 @@ TEST(test_role_conflict_sub_wlshell)
|
|||
|
||||
expect_protocol_error(client, &wl_shell_interface,
|
||||
WL_SHELL_ERROR_ROLE);
|
||||
|
||||
wl_shell_surface_destroy(shsurf);
|
||||
wl_subsurface_destroy(sub);
|
||||
wl_surface_destroy(child);
|
||||
wl_shell_destroy(shell);
|
||||
wl_subcompositor_destroy(subco);
|
||||
client_destroy(client);
|
||||
}
|
||||
|
||||
TEST(test_role_conflict_wlshell_sub)
|
||||
|
|
@ -152,4 +159,11 @@ TEST(test_role_conflict_wlshell_sub)
|
|||
|
||||
expect_protocol_error(client, &wl_subcompositor_interface,
|
||||
WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE);
|
||||
|
||||
wl_shell_surface_destroy(shsurf);
|
||||
wl_subsurface_destroy(sub);
|
||||
wl_surface_destroy(child);
|
||||
wl_shell_destroy(shell);
|
||||
wl_subcompositor_destroy(subco);
|
||||
client_destroy(client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue