ivi-shell: call weston_layer_fini()

This ensures the layers are torn down properly.

See commit: libweston: add weston_layer_fini()

There would be a lot more to tear down here, but that is for another
time.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2021-05-14 14:55:26 +03:00
parent 4bb326bc8c
commit 9706a807f9
3 changed files with 15 additions and 0 deletions

View file

@ -57,6 +57,9 @@ ivi_layout_surface_create(struct weston_surface *wl_surface,
void
ivi_layout_init_with_compositor(struct weston_compositor *ec);
void
ivi_layout_fini(void);
void
ivi_layout_surface_destroy(struct ivi_layout_surface *ivisurf);

View file

@ -2053,6 +2053,16 @@ ivi_layout_init_with_compositor(struct weston_compositor *ec)
sizeof(struct ivi_layout_interface));
}
void
ivi_layout_fini(void)
{
struct ivi_layout *layout = get_instance();
weston_layer_fini(&layout->layout_layer);
/* XXX: tear down everything else */
}
static struct ivi_layout_interface ivi_layout_interface = {
/**
* commit all changes

View file

@ -353,6 +353,8 @@ shell_destroy(struct wl_listener *listener, void *data)
free(ivisurf);
}
ivi_layout_fini();
free(shell);
}