mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 14:38:07 +02:00
ivi-layout: clear on_layer when layer_destroy
On_layer of ivi_layout_surface should be NULL in the layer_destroy. Previous code might access to removed ivilayer and cause SEGV. Signed-off-by: Wataru Natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
48fbb54959
commit
7b3a52ab39
1 changed files with 1 additions and 0 deletions
|
|
@ -914,6 +914,7 @@ clear_surface_order_list(struct ivi_layout_layer *ivilayer)
|
|||
&ivilayer->order.surface_list, order.link) {
|
||||
wl_list_remove(&surface_link->order.link);
|
||||
wl_list_init(&surface_link->order.link);
|
||||
surface_link->on_layer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue