summaryrefslogtreecommitdiff
path: root/ivi-shell/ivi-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'ivi-shell/ivi-layout.c')
-rw-r--r--ivi-shell/ivi-layout.c3
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);