Skip to content

Commit

Permalink
layer-shell: Destroy weston_view on layer surface destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
adlocode committed Jun 26, 2019
1 parent cd14082 commit acf386b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wlr_layer_shell_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ static void layer_surface_destroy(struct wlr_layer_surface_v1 *surface) {
surface->surface->role_name = NULL;
wl_list_remove(&surface->surface_destroy.link);
wl_list_remove(&surface->link);
weston_view_damage_below (surface->view);
weston_view_destroy (surface->view);
weston_surface_unmap (surface->surface);
weston_compositor_schedule_repaint (surface->surface->compositor);
surface->surface->committed = NULL;
surface->surface->committed_private = NULL;
free(surface->namespace);
free(surface);
}
Expand Down

0 comments on commit acf386b

Please sign in to comment.