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>
dev
Pekka Paalanen 3 years ago
parent 4bb326bc8c
commit 9706a807f9
  1. 3
      ivi-shell/ivi-layout-shell.h
  2. 10
      ivi-shell/ivi-layout.c
  3. 2
      ivi-shell/ivi-shell.c

@ -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…
Cancel
Save