diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-03 15:03:16 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-06-03 18:02:09 +0900 |
commit | 5c14a0360d41e8a828d238cfa5379143ca98cf1a (patch) | |
tree | 039a756b993066cf4be8fd2a80f22906d6f9996e | |
parent | 282ebdc0c6ac803b0f839b02779cd52ae9d9b3e7 (diff) | |
download | weston-5c14a0360d41e8a828d238cfa5379143ca98cf1a.tar.gz |
Clear link list to layer when ordersurface removed.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
-rw-r--r-- | ivi-shell/ivi-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index cb1b72b4..b15f7cc9 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -325,6 +325,9 @@ remove_ordersurface_from_layer(struct ivi_layout_surface *ivisurf) if (!wl_list_empty(&link_layer->link)) { wl_list_remove(&link_layer->link); } + if (!wl_list_empty(&link_layer->link_to_layer)) { + wl_list_remove(&link_layer->link_to_layer); + } free(link_layer); } wl_list_init(&ivisurf->list_layer); |