diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-01 15:01:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-01 15:01:16 +0200 |
commit | 1dd523c34c71a7d156c62bc3e3f033113b666e4d (patch) | |
tree | 896df135f0c4ea15cd557f7e240671d15e3c9d64 | |
parent | 890bbd7b5c58235053fd81c4cdad8b861e2471c1 (diff) | |
parent | 130bf15cfa13a927972556d65fa04b8e10c79e03 (diff) |
Merge pull request #1275 from linkmauve/fix-xdg-decoration-destroy-crash
Fix a crash on zxdg_decoration_manager_v1 destroy
-rw-r--r-- | types/wlr_xdg_decoration_v1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/types/wlr_xdg_decoration_v1.c b/types/wlr_xdg_decoration_v1.c index f5182daa..607b75e4 100644 --- a/types/wlr_xdg_decoration_v1.c +++ b/types/wlr_xdg_decoration_v1.c @@ -156,6 +156,11 @@ static struct wlr_xdg_decoration_manager_v1 * return wl_resource_get_user_data(resource); } +static void decoration_manager_handle_destroy( + struct wl_client *client, struct wl_resource *manager_resource) { + wl_resource_destroy(manager_resource); +} + static void decoration_manager_handle_get_toplevel_decoration( struct wl_client *client, struct wl_resource *manager_resource, uint32_t id, struct wl_resource *toplevel_resource) { @@ -229,6 +234,7 @@ static void decoration_manager_handle_get_toplevel_decoration( static const struct zxdg_decoration_manager_v1_interface decoration_manager_impl = { + .destroy = decoration_manager_handle_destroy, .get_toplevel_decoration = decoration_manager_handle_get_toplevel_decoration, }; |