mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 15:48:05 +02:00
tests: remove destroy_listener when destroying test-desktop-shell
When destroying the shell we need to remove the listeners as well. The test-desktop-shell was forgetting to do this. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
a0f4a16132
commit
a7e0e717a9
1 changed files with 2 additions and 0 deletions
|
|
@ -165,6 +165,8 @@ shell_destroy(struct wl_listener *listener, void *data)
|
|||
dts = container_of(listener, struct desktest_shell,
|
||||
compositor_destroy_listener);
|
||||
|
||||
wl_list_remove(&dts->compositor_destroy_listener.link);
|
||||
|
||||
weston_desktop_destroy(dts->desktop);
|
||||
weston_view_destroy(dts->background_view);
|
||||
weston_surface_destroy(dts->background_surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue