[PATCH] ivi-layout : clear on_layer when layer_destroy

2016-04-11 Thread Wataru Natsume
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

[PATCH weston] hmi-controller: fix leak of ivi surface list

2016-03-03 Thread Wataru Natsume
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

[PATCH weston] remove warning of ivisurface reassign on the ivilayer

2016-03-03 Thread Wataru Natsume
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

[PATCH weston v2] hmi-controller: remove duplicate commit_changes in random mode

2016-02-17 Thread Wataru Natsume
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