Skip to content
  • Michael Olbrich's avatar
    ivi-shell: fix destroying view that are not shown · a4931451
    Michael Olbrich authored
    
    
    Both the core in weston_compositor_build_view_list() with view.link and the
    ivi-shell in commit_screen_list() with view.layer_link don't remove the old
    views from the list.
    As a result, all views that are not currently in the list have old broken
    links. Destroying such a view tries to remove the view from these lists and
    will access the old, invalid pointers.
    
    Fix this by unmapping all invisible views before the lists are rebuilt.
    This removes the views from the lists and all pointer remain valid.
    
    Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
    a4931451