shell: Let the output destroy handler handle layer fini
[src/agl-compositor.git] / src / compositor.c
index 2fb981b..5d8d300 100644 (file)
@@ -86,6 +86,7 @@ handle_output_destroy(struct wl_listener *listener, void *data)
                output->fullscreen_view.fs->view = NULL;
        }
 
+       weston_layer_fini(&output->ivi->fullscreen);
        output->output = NULL;
        wl_list_remove(&output->output_destroy.link);
 }