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
---
ivi-shell/ivi-layout.c |1 +
1 file changed, 1 insertion(+)
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
From: Wataru Natsume
get_surfaces_on_layer() allocates memory and stores the pointer to 'ivisurfs'.
But it was not freed.
Signed-off-by: Wataru Natsume
---
ivi-shell/hmi-controller.c |5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ivi-shell/hmi-controll
From: Wataru Natsume
The warning of ivisurface reassign can be removed. Current
ivi_layout_layer_add_surface() removes the ivisurface from its previous
ivilayer and returns sucess.
Signed-off-by: Wataru Natsume
---
ivi-shell/ivi-layout.c |8 +++-
1 file changed, 7 insertions(+), 1
From: Wataru Natsume
Previous code cleaned up surfaces in layer once and then added
surfaces to a layer in random. In this flow, two commitchanges are
required.
Signed-off-by: Nobuhiko Tanibata
[wataru_nats...@xddp.denso.co.jp: Removes unnecessary check]
Signed-off-by: Wataru Natsume