summaryrefslogtreecommitdiff
path: root/ivi-shell
diff options
context:
space:
mode:
authorWataru Natsume <wataru_natsume@xddp.denso.co.jp>2016-04-11 21:34:52 +0900
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-04-12 15:49:09 +0300
commit7b3a52ab39bfa95b461460ef1cc1ac81824e00f7 (patch)
treefa274fd444aafbc6bcbc2c67f011a2a85f9b125e /ivi-shell
parent48fbb5495931eff6e27531159a3fb1df630cfd63 (diff)
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>
Diffstat (limited to 'ivi-shell')
-rw-r--r--ivi-shell/ivi-layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index e3452d2c..41426943 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -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;
}
}