Skip to content

Commit

Permalink
Delete toplevel handle on xdg view destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Oct 26, 2023
1 parent cd430df commit 0963ffc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/surface/xdg_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static void xdg_toplevel_destroy_notify(wl_listener* listener, void* data) {
(void) data;

view.server.views.remove(&view);
delete view.toplevel_handle;
delete &view;
}

Expand Down

0 comments on commit 0963ffc

Please sign in to comment.