mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-16 00:02:20 +00:00
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:
parent
4bb326bc8c
commit
9706a807f9
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -353,6 +353,8 @@ shell_destroy(struct wl_listener *listener, void *data)
|
|||
free(ivisurf);
|
||||
}
|
||||
|
||||
ivi_layout_fini();
|
||||
|
||||
free(shell);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue